Utility functions for working with PureScripts builtin Number type.
spago install numbers
- Parsing with fromString
- Formating with toStringWith, seeData.Number.Format
- Approximate comparisions with ≅, seeData.Number.Approximate
- Not-a-number and infinite value detection with isNaNandisFinite
- Remainder with %
- Trignometric functions with sin,cos,tan,asin,acos,atan, andatan2
- Natural logarithm and exponents with logandexp
- Powers with sqrtandpow
- Rounding with ceil,floor,round, andtrunc
- Numeric minimum and maximum with minandmax, which behave differently to the versions inData.Ordon values ofNaN
- Sign and absolute value functions signandabs
- Numeric constants e,ln 2,ln10,log10e,log2e,pi,sqrt1_2,sqrt2, andtau
Module documentation is published on Pursuit.