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
isNaN
andisFinite
- Remainder with
%
- Trignometric functions with
sin
,cos
,tan
,asin
,acos
,atan
, andatan2
- Natural logarithm and exponents with
log
andexp
- Powers with
sqrt
andpow
- Rounding with
ceil
,floor
,round
, andtrunc
- Numeric minimum and maximum with
min
andmax
, which behave differently to the versions inData.Ord
on values ofNaN
- Sign and absolute value functions
sign
andabs
- Numeric constants
e
,ln 2
,ln10
,log10e
,log2e
,pi
,sqrt1_2
,sqrt2
, andtau
Module documentation is published on Pursuit.