SyntaxFix
Write A Post
Hire A Developer
Questions
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...