How to get numbers after decimal point?

Alex Gordon picture Alex Gordon · Oct 8, 2010 · Viewed 199.4k times · Source

How do I get the numbers after a decimal point?

For example, if I have 5.55, how do i get .55?

Answer

jer picture jer · Oct 8, 2010
5.55 % 1

Keep in mind this won't help you with floating point rounding problems. I.e., you may get:

0.550000000001

Or otherwise a little off the 0.55 you are expecting.