Function to return the golden ratio
n with n being a number n.goldenRatio()
Returns Number The goldenRatio of the number
Function to return the rounded form of a number method
1.95.round() => 2
Returns Number n with n being a number rounded to it's closest int by .50 in either direction
Function to return the floor method
1.95.floor() => 1
Returns number n with n being a number rounded down from it's float form to int
Function to return the ceil method
1.15.round() => 2
Returns number n with n being a number rounded up from it's float form to int
Function that pads the number with 0's before and after the decimal for specified padding
x
y
n.y.pad(4,4) => 000n.y000
Returns Number with the number being padded with zeroes to users specs
Function that turns degrees to radians
n for n being a degree n.toRadian() => 135deg 3pie/4 rad
Returns Number with number being in radians
Function that turns degrees to radians
n for n being a radian n.toDegree() =>
Returns Number with number being in degrees
Function that turns decimal to dollar
n for n being a decimal n.toDollars() =>
Returns Number with number being in decimal
Function that returns the tax rate of a number
tax
number rate paid in tax as a decimal
n for n being a Number n.tax() => 100.tax(8.875) = 8.88
Returns Number with the number being the amount of money in tax
Function that returns the tax rate of a number added to the amount
tax
number rate paid in tax as a decimal
n for n being a Number n.tax() => 100.tax(8.875) = 188.88
Returns Number with the number being the amount of money in tax
Function that calculates the interest on a number given the years and rate
Returns Number with the calculated interest
Function that calculates a mortage based on principal number of payments and interest rate
numberOfPayments
Number times principal to be paidinterestRate
Number Rate at which money will cost you more money
Function that returns hex value for a given int
Returns Hexidecimal Returns a Hex value for corresponding int value