repl.txt (586B)
1 2 {{alias}}( x ) 3 Tests if a finite double-precision floating-point number is a safe integer. 4 5 An integer valued number is "safe" when the number can be exactly 6 represented as a double-precision floating-point number. 7 8 Parameters 9 ---------- 10 x: number 11 Value to test. 12 13 Returns 14 ------- 15 bool: boolean 16 Boolean indicating whether the value is a safe integer. 17 18 Examples 19 -------- 20 > var bool = {{alias}}( 1.0 ) 21 true 22 > bool = {{alias}}( 2.0e200 ) 23 false 24 > bool = {{alias}}( 3.14 ) 25 false 26 27 See Also 28 -------- 29