How would you find the fractional part of a floating point number in PHP?
For example, if I have the value 1.25, I want to return 0.25.
1.25
0.25
If if the number is negative, you'll have to do this:
$x = abs($x) - floor(abs($x));