
|
If you were logged in you would be able to see more operations.
|
|
|
| Planning Status: |
Unspecified
|
|
For numbers below -1, *truncate returns the nearest lower number (e.g. -2.1 -> -3; -45.88 -> -46). This is 'floor' rather than 'truncate'.
On <-1, 0], truncate returns 0.
Only -1 truncates to -1.
(The last two results are correct; just given here for completeness.)
|
|
Description
|
For numbers below -1, *truncate returns the nearest lower number (e.g. -2.1 -> -3; -45.88 -> -46). This is 'floor' rather than 'truncate'.
On <-1, 0], truncate returns 0.
Only -1 truncates to -1.
(The last two results are correct; just given here for completeness.)
|
Show » |
|
round always rounds to the next bigger integer when it's in the upper half of the range (including x.5).
trunc always truncates to the biggest integer that's equal or smaller than the argument.