1.0.0 • Published 5 years ago

will_mathlib v1.0.0

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

API Docs

Table of Contents

CustomMath

src/index.js:1-135

round

src/index.js:9-11

Returns number the value of a number rounded to the nearest integer.

floor

src/index.js:15-17

Returns number returns the largest integer less than or equal to a given number.

ceil

src/index.js:21-23

Returns number rounds to the next largest whole number

pad

src/index.js:28-32

Parameters
  • x a number to pad before the number
  • y a number to pad after the number
degToRad

src/index.js:37-40

Parameters
  • degrees a number

Returns number returns a number

radToDeg

src/index.js:46-49

Parameters
  • radians a number

Returns number to degrees

toDollars

src/index.js:57-64

Returns any a string

tax

src/index.js:70-74

Parameters
  • price the price of the item
  • quantity the quantity

Returns any the tax

withTax

src/index.js:78-80

Parameters
  • rate number the rate of this tax
interest

src/index.js:87-90

Parameters
  • total the total amount of interest
  • years the total amount of years to pay of the interest
  • ratePercent the rate at which someone needs to be there debt off
  • roundToPlaces how many places to round to
mortage

src/index.js:96-99

Parameters
  • principalAmount the starting amount
  • numbOfPayments number of payments
  • interest the amount of interest
intToHex

src/index.js:104-106

Converts an integer to a hex code

Returns string a hex code

random

src/index.js:110-112

Returns number a random number

randomRange

src/index.js:118-122

Parameters
  • min the minumum number
  • max the maximum number
randomColor

src/index.js:126-133

Returns string a hex code