IS Integer?
Hmm, been looking around and can't seem to find anything about this here.
Does anyone know of a way to find out if a float is an integer or not? example: 15.1 - not an integer 15.0 - is an integer Thanks |
Re: IS Integer?
if( var == floatround( var ) )
|
Re: IS Integer?
if (floatfract(var) == 0.0) { /* is integer */ }
|
| All times are GMT -4. The time now is 16:03. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.