Hi All;
Is there a function in PHP that returns the values after a decimal point?? I can explode around a '.' and do it that way, but this seems like such a common thing, that there might be a function that does it already.
Thanks
Uriel
Hi,
try this: $decimal = 123.45; $after_point = substr($decimal-floor($decimal), 2); echo $after_point; / Returns 45 /
firemouse2001