05-11-2022, 09:47 AM
Easiest solution I've found for this type of thing -- just write your own Round function:
Can easily round to whatever decimal point you want with the above.
Code: (Select All)
Print _Pi
For i = 14 To 0 Step -1
Print Round(_Pi, i)
Next
Function Round## (num As _Float, toDecPlace As _Unsigned _Byte)
Round = Int(num * 10 ^ toDecPlace + .5) / 10 ^ toDecPlace
End Function
Can easily round to whatever decimal point you want with the above.