Raised This Month: $ Target: $400
 0% 

floatround(value, floatround_round)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 09-28-2009 , 09:12   floatround(value, floatround_round)
Reply With Quote #1

if the value == 0.4 and I will use floatround_round it will do -> 0.0? Otherwise if 0.5 -> 1.0 ?
__________________
xbatista is offline
Send a message via Skype™ to xbatista
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 09-28-2009 , 09:17   Re: floatround(value, floatround_round)
Reply With Quote #2

Questions like this are best answered by trial and error since you've already had to wait for me to answer it for about 10 minutes now, but yes.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 09-28-2009 , 09:19   Re: floatround(value, floatround_round)
Reply With Quote #3

Thanks and
Quote:
Questions like this are best answered by trial and error since you've already had to wait for me to answer it for about 10 minutes now
what?
__________________
xbatista is offline
Send a message via Skype™ to xbatista
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 09-28-2009 , 09:31   Re: floatround(value, floatround_round)
Reply With Quote #4

But not. It's a round native, so it returns an integer instead of float like you specifed. So basically floatround_round returns the closest integer and with ~ .500000 the higher one.

Last edited by SnoW; 09-28-2009 at 09:33.
SnoW is offline
Send a message via MSN to SnoW
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 09-28-2009 , 09:44   Re: floatround(value, floatround_round)
Reply With Quote #5

Hawk said that if you would have tested the function you would have got the answer to your question quicker than on the forum.
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 09-28-2009 , 09:50   Re: floatround(value, floatround_round)
Reply With Quote #6

Quote:
~ .500000 the higher one.
and I don't need more

I just was lazy to create new file and write client_print
__________________
xbatista is offline
Send a message via Skype™ to xbatista
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 09-28-2009 , 11:31   Re: floatround(value, floatround_round)
Reply With Quote #7

Quote:
Originally Posted by xbatista View Post
I just was lazy to create new file and write client_print
The forum shouldn't be cluttered with useless topics because lazy people don't want to help themselves.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Reply


Thread Tools
Display Modes

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 22:39.


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