Raised This Month: $ Target: $400
 0% 

float to num


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 05-19-2012 , 09:40   Re: float to num
Reply With Quote #1

It will return 4.

floatround_round rounds to nearest int. (3.642148 -> 4)
floatround_floor rounds to nearest smaller int. (3.642148 -> 3)
floatround_ceil rounds to nearest larger int. (3.642148 -> 4) (useful for 3.22 for example)
floatround_zero rounds to nearest to 0 int. (3.642148 -> 3) (useful for negative values)
__________________
<VeCo> is offline
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:30.


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