Purpose : Round off a numeric value to the next lower whole number
Format: ROUND( value )
Notes: The ROUND function removes the fractional portion of a number. value must be a constant or variable. If value is negative then the next largest negative whole number will be returned.
Example:
# Round off randomly selected numbers.
# Assign a random fraction
to 'a'
a = random
# Multiply by 10000 to
scale.
a = a * 10000
# Subtract to get equal
negative numbers.
a = a - 5000
# Round off.
b = round(a)
# Print out the results
print a " when
rounded off = " b
pause
exit