roundcast( <var>, <num> )
Description
This converts the number specified into the variable specified, rounding to the nearest whole number.
Notes
This exists because 'set A to Z' rounds down, so 1.9 would become 1.
Specifics
RISC OS:
- If you cast a float to a float, 0.5 is added.
This is incorrect, and does not occur under Windows.
- If you cast an integer to an integer, nothing is added.
This is expected behaviour.
- If you cast an integer to a float, 0.5 is added.
This is incorrect, and does not occur under Windows.
Related information