Given, say, 1.25 - how do I get \"1\" and .\"25\" parts of this number?
I need to check if the decimal part is .0, .25, .5, or .75.
If you can count on it always having 2 decimal places, you can just use a string operation:
$decimal = 1.25; substr($decimal,-2); // returns "25" as a string
No idea of performance but for my simple case this was much better...