Posted by Steve on 10/03/06 15:55
this should help tell if whole number...or at least a float ending in .0000
which is equivalent except in data-typing.
function isInt($value)
{
return floatval(intval($value)) == floatval($value);
}
"fang" <fang27@excite.com> wrote in message
news:1159889583.290169.273890@k70g2000cwa.googlegroups.com...
|
| Anyone have a suggestion as to what function I can use in php to find
| if a number is a whole number, and does not have a decimal?
|
| Thanks,
|
| MW
|
Navigation:
[Reply to this message]
|