Raised This Month: $ Target: $400
 0% 

Float number calculations


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
zeus
Senior Member
Join Date: Jul 2008
Old 07-18-2013 , 16:10   Re: Float number calculations
Reply With Quote #4

I have made a similar test

Code:
new Float:a = 32.0;
new Float:b = 0.13;
new Float:s;
	
s = a + b;
client_print(id,print_chat,"%f",s);
The result shown is

Code:
32.130001
Tested with latest HLDS build, AMXX Build ID: 1.8.3-dev 140:f57bd4cee0b7, runing CentOS 6 64bit.
zeus 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 06:30.


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