Raised This Month: $ Target: $400
 0% 

WHY doesn't this simple float work


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 08-13-2011 , 12:17   Re: WHY doesn't this simple float work
Reply With Quote #2

Move the float function to the substraction:
Code:
new Float:percent = (float(x - y) / x) * 100.0
Or just use float values instead.
__________________
Hunter-Digital 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 03:31.


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