check if number is float
Is there any native to check if the number is float ?
Like this : if(is_float(number)) this is float |
Re: check if number is float
Variable must be specifically defined as a float so you already know if a number is a floating point number.
|
Re: check if number is float
Quote:
PHP Code:
So if you read our messages you will definitely understand. |
Re: check if number is float
Quote:
|
Re: check if number is float
Quote:
|
Re: check if number is float
Quote:
|
Re: check if number is float
That's strange, I'm almost sure it existed o.O
Well, this is still better (by Exolent) than a contain check: PHP Code:
|
Re: check if number is float
|
Re: check if number is float
I think we have an XY Problem going on here. OP, please explain what you are actually trying to achieve here. There might even be a simpler solution or one completely different.
Quote:
|
Re: check if number is float
I have got admin cmd to give player invisibility for seconds..
Seconds are defined like this (not float) new secs I am aware that admins can type something like this give_invis STEAM_HERE 1.4 I want to allow only round numbers... |
| All times are GMT -4. The time now is 13:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.