Raised This Month: $ Target: $400
 0% 

Limiting decimal part of a float.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
MyPc
Senior Member
Join Date: Sep 2011
Old 11-20-2011 , 00:05   Re: Limiting decimal part of a float.
Reply With Quote #9

Quote:
Originally Posted by rx1983 View Post
still can not understand how to display the integer part of a float.

example:

a = 123.456

Archine, how can I display the "123"??
appear without the dot "." ?


PHP Code:
client_print(0print_chat"[csro] Frags: %.0f "frags[bestplayer]); 
output: "123."

this way I can view the entire piece, but it appears the "."

display only the decimal part?
I don't know if i understood what you want but -- > http://www.amxmodx.org/funcwiki.php?go=func&id=73
MyPc is offline
 



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 04:16.


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