How do I get only the numbers after the decimal?
Example: 2.938 = 938
2.938
938
The usual hack (which varies a bit in syntax) is
x - floor(x)
That's the fractional part. To make into an integer, scale it.
(x - floor(x)) * 1000