Rounds the argument at the specified digit.
ROUND ( argument , digit )
└──┬───┘ └─┬─┘
Numeric expression Numeric expression
ROUND(A, -3)
Rounds the argument (to the nearest whole number) at the specified digit.
10 N=RAN# * 1000
20 PRINT N
30 INPUT "WHERE"; R
40 PRINT ROUND(N,R)
50 END
Displays random value and then rounds value at digit specified by numeric input.
For example, responding to prompt “WHERE” with input of -2 when N = 610.5765383 produces result of 610.6.