Raised This Month: $ Target: $400
 0% 

Math?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 04-30-2016 , 07:09   Re: Math?
Reply With Quote #4

Solution for anyone interested:
Code:
new Float:sDonativo = 3.0 new Float:teste = sDonativo * 74 / 100 colorchat(0, id, "%.2f", teste)
Start the equation with a float, otherwise it will calculate 74 / 100 as integers, which will return 0.
And 0 * anything = 0.
__________________
Black Rose 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 18:35.


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