time-to-botec/squiggle/node_modules/@stdlib/math/base/special/abs/docs/repl.txt
NunoSempere b6addc7f05 feat: add the node modules
Necessary in order to clearly see the squiggle hotwiring.
2022-12-03 12:44:49 +00:00

31 lines
462 B
Plaintext

{{alias}}( x )
Computes the absolute value of a double-precision floating-point number `x`.
Parameters
----------
x: number
Input value.
Returns
-------
y: number
Absolute value.
Examples
--------
> var y = {{alias}}( -1.0 )
1.0
> y = {{alias}}( 2.0 )
2.0
> y = {{alias}}( 0.0 )
0.0
> y = {{alias}}( -0.0 )
0.0
> y = {{alias}}( NaN )
NaN
See Also
--------