repl.txt (542B)
1 2 {{alias}}( x ) 3 Rounds a numeric value to the nearest power of two toward positive infinity. 4 5 Parameters 6 ---------- 7 x: number 8 Input value. 9 10 Returns 11 ------- 12 y: number 13 Rounded value. 14 15 Examples 16 -------- 17 > var y = {{alias}}( 3.14 ) 18 4.0 19 > y = {{alias}}( -4.2 ) 20 -4.0 21 > y = {{alias}}( -4.6 ) 22 -4.0 23 > y = {{alias}}( 9.5 ) 24 16.0 25 > y = {{alias}}( 13.0 ) 26 16.0 27 > y = {{alias}}( -13.0 ) 28 -8.0 29 > y = {{alias}}( -0.0 ) 30 -0.0 31 32 See Also 33 -------- 34