Hi
I have an incomming decimal value (DECIMAL 17,2) say 14.12345 but I need just 2 places from the decimal like 14.12
I have tried to use the field function and extract the decimal portion of it so that I can append it to the value, but how do I extract the value before the delimter!
Thanks,
(DECIMAL 17,2) 14.12345 --> 14.12
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 353
- Joined: Wed Apr 06, 2005 8:45 am
Re: (DECIMAL 17,2) 14.12345 --> 14.12
As easier answer:
Ans = FMT(14.12345, 'R2')
Or
Ans = FMT(14.12345, 'T2')
First 1 rounds at 2, last one truncates at 2.
Ogmios
Ans = FMT(14.12345, 'R2')
Or
Ans = FMT(14.12345, 'T2')
First 1 rounds at 2, last one truncates at 2.
Ogmios
In theory there's no difference between theory and practice. In practice there is.
-
- Premium Member
- Posts: 353
- Joined: Wed Apr 06, 2005 8:45 am