Raised This Month: $ Target: $400
 0% 

Convert a flot number to the entire inmediate number?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 05-07-2009 , 13:30   Re: Convert a flot number to the entire inmediate number?
Reply With Quote #2

Quote:
Originally Posted by _lol_ View Post
how to show in my print an entire numbre?
PHP Code:
new Floatfloat_f 0.00213;
client_print(idprint_chat"Float here: %f"float_f); 
Quote:
Originally Posted by _lol_ View Post
but i dont want 13.2 i want 14.
PHP Code:
new Floatfloat_f 0.00213;
client_print(idprint_chat"Integer here: %d"floatround(float_f2)); 
There's also different flags in floatround, you may want check them out.
http://www.amxmodx.org/doc/index.htm...floatround.htm
SnoW is offline
Send a message via MSN to SnoW
 



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 01:27.


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