hello - anyone out there.
Is there any efficient way to calculate the last integer+decimals from the price?
for example:
1541.75 - should return 1.75
932.11 - should return 2.11
86.42 - should return 6.42
I tried different options - but have been running around to get this done efficiently.
Thanks in advance!!
help - to detect the last integer+decimal from price
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: help - to detect the last integer+decimal from price
divide the number by 10,hello - anyone out there.
Is there any efficient way to calculate the last integer+decimals from the price?
for example:
1541.75 - should return 1.75
932.11 - should return 2.11
86.42 - should return 6.42
I tried different options - but have been running around to get this done efficiently.
Thanks in advance!!
then use FracPortion to get the decimal portion,
then multiply it by 10 again.
QED
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: help - to detect the last integer+decimal from price
press [F1] and you will get to see the keywords by categoryThanks TJ - Didn't know about the keyword - FracPortion
- Attachments
-
- keyword categories.gif
- (11.07 KiB) Downloaded 470 times