Hello,
I was hoping someone would be kind enough to help show me how to round a value to the lowest 1, 10, 100, or 1000, in Easy Language.
For example, value if Value1 = 2357.67, then:
The rounding to the lowest 1 would be 2357, to the lowest 10 would be 2350, to the lowest 100 would be 2300 and lowest 1000 would be 2000.
Thanks in advance!
Rounding in PL / EL [SOLVED]
- TJ
- Posts: 7744
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2223 times
Re: Rounding in PL / EL [SOLVED]
Look upHello,
I was hoping someone would be kind enough to help show me how to round a value to the lowest 1, 10, 100, or 1000, in Easy Language.
For example, value if Value1 = 2357.67, then:
The rounding to the lowest 1 would be 2357, to the lowest 10 would be 2350, to the lowest 100 would be 2300 and lowest 1000 would be 2000.
Thanks in advance!
IntPortion
for lowest 10,
simply divide the number by 10, do the IntPortion, then multiply by 10 again.