1.0.0 • Published 5 years ago
will_mathlib v1.0.0
API Docs
Table of Contents
CustomMath
round
Returns number the value of a number rounded to the nearest integer.
floor
Returns number returns the largest integer less than or equal to a given number.
ceil
Returns number rounds to the next largest whole number
pad
Parameters
x
a number to pad before the numbery
a number to pad after the number
degToRad
Parameters
degrees
a number
Returns number returns a number
radToDeg
Parameters
radians
a number
Returns number to degrees
toDollars
Returns any a string
tax
Parameters
price
the price of the itemquantity
the quantity
Returns any the tax
withTax
Parameters
rate
number the rate of this tax
interest
Parameters
total
the total amount of interestyears
the total amount of years to pay of the interestratePercent
the rate at which someone needs to be there debt offroundToPlaces
how many places to round to
mortage
Parameters
principalAmount
the starting amountnumbOfPayments
number of paymentsinterest
the amount of interest
intToHex
Converts an integer to a hex code
Returns string a hex code
random
Returns number a random number
randomRange
Parameters
min
the minumum numbermax
the maximum number
randomColor
Returns string a hex code
1.0.0
5 years ago