Rnd
The Rnd function returns a numeric value, rounded to the specified precision.
Syntax :
Rnd(MinValue,MaxValue)
Parameters | Description |
---|---|
number | A valid numeric expression. It can be optional. If number is : <0 : Rnd returns the same number every time. >0 : Rnd returns the next random number in the sequence. =0 : Rnd returns the most recently generated number. Not supplied - Rnd returns the next random number in the sequence. |
Example :
dRnd = ROUND(5.724,1)
Result :
dRnd
= 5.7