repl.txt (612B)
1 2 {{alias}}( x ) 3 Converts a double-precision floating-point number to a signed 32-bit 4 integer. 5 6 Parameters 7 ---------- 8 x: number 9 Double-precision floating-point number. 10 11 Returns 12 ------- 13 out: integer 14 Signed 32-bit integer. 15 16 Examples 17 -------- 18 > var y = {{alias}}( 4294967295.0 ) 19 -1 20 > y = {{alias}}( 3.14 ) 21 3 22 > y = {{alias}}( -3.14 ) 23 -3 24 > y = {{alias}}( NaN ) 25 0 26 > y = {{alias}}( {{alias:@stdlib/constants/float64/pinf}} ) 27 0 28 > y = {{alias}}( {{alias:@stdlib/constants/float64/ninf}} ) 29 0 30 31 See Also 32 --------