Skip to content

Functions Number

Jason Barr edited this page Sep 22, 2021 · 2 revisions

A functional, curried interface to the JavaScript Number type, plus additional useful numeric functions.

The Functions

  • bigint
  • epsilon
  • float - returns Option
  • infinity
  • int - returns Option
  • maxNegativeInt
  • maxPositiveInt
  • maxValue
  • minValue
  • negativeInfinity
  • number - converts a value into a number
  • toBin - returns a string of a number's binary representation
  • toExpo - returns a number in exponential notation
  • toFixed - returns a float to a number of significant digits
  • toHex - returns a string of a number's hedadecimal representation
  • toOct - returns a string of a number's octal representation
  • toPrecision - returns a float to a number of significant digits
Clone this wiki locally