Raised This Month: $ Target: $400
 0% 

Value float or Integer?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 05-12-2012 , 07:27   Re: Value float or Integer?
Reply With Quote #1

In CS it could be something like:

PHP Code:
new Float:Amount 5.2
if( Amount == float(floatround(Amount)) ) 
floatround will make Amount to 5, float makes it back to 5.0
so: 5.2 != 5.0

Means its a float
__________________
Retired.
Xalus is offline
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 05-12-2012 , 07:39   Re: Value float or Integer?
Reply With Quote #2

You forgot an ), Exolent
__________________

Last edited by claudiuhks; 05-12-2012 at 07:40.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:24.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode