repl.txt (462B)
1 2 {{alias}}( x ) 3 Computes the absolute value of a double-precision floating-point number `x`. 4 5 Parameters 6 ---------- 7 x: number 8 Input value. 9 10 Returns 11 ------- 12 y: number 13 Absolute value. 14 15 Examples 16 -------- 17 > var y = {{alias}}( -1.0 ) 18 1.0 19 > y = {{alias}}( 2.0 ) 20 2.0 21 > y = {{alias}}( 0.0 ) 22 0.0 23 > y = {{alias}}( -0.0 ) 24 0.0 25 > y = {{alias}}( NaN ) 26 NaN 27 28 See Also 29 -------- 30