You are here: Re: finding whole numbers « All PHP « IT news, forums, messages
Re: finding whole numbers

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация