History of Idiom 81 > diff from v38 to v39
Edit summary for version 39 by steenslag:
[Ruby] "round" rounds away from zero
[Ruby] "round" rounds away from zero
↷
Version 38
2017-10-16, 09:35:31
Version 39
2017-10-18, 23:06:48
Idiom #81 Round floating point number to integer
Declare integer y and initialize it with the rounded value of floating point number x .
Ties (when the fractional part of x is exactly .5) must be rounded up (to positive infinity).
Idiom #81 Round floating point number to integer
Declare integer y and initialize it with the rounded value of floating point number x .
Ties (when the fractional part of x is exactly .5) must be rounded up (to positive infinity).
Comments bubble