There’s no built-in function to manipulate single digits.
You can achieve that by a doing some divisions and multiplications by ten, then rounding the number to subtract the result from the original number to get the desired digit:
1
2
3
4
5
6
7
8
N=6939//it can be CLOSE, ... etc or ROUND(CLOSE),... etc to make it an integer
T=0
//right to left
WHILEN>0//exit the iteration when N = 0
x=round((N/10)-0.5)*10//get 693.9, then 693.0, then 6930
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue