01-30-2004, 12:06 AM
Code:
FUNCTION round# (num AS DOUBLE, dp AS INTEGER)
DIM exp1 AS LONG, num2 AS LONG
exp1 = (10 ^ dp): num2 = num * exp1: round# = (INT(num2)) / exp1
END FUNCTION
How about this for a rounding function as a replacement to the original FAQ rounding function?
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."
Visit www.neobasic.net to see rubbish in all its finest.
Visit www.neobasic.net to see rubbish in all its finest.