Raised This Month: $ Target: $400
 0% 

Float number calculations


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
dFF
sıɹɹoɥɔ ʞɔnu
Join Date: Oct 2009
Old 07-18-2013 , 15:39   Float number calculations
Reply With Quote #1

For example i have:

PHP Code:
static Float:fStartFloat:fAdd
    
fStart 
getDayValue)
fAdd fStart 0.1

client_print
idprint_chat"fStart: %f"fStart )
client_printidprint_chat"fAdd: %f"fAdd )

Float:get_DayValueday )
{
    if( 
day == )
        return 
80.0
    
    
return 1.0


debug say:

Code:
fStart: 80.000000
fAdd: 80.099998
why not increased with 8.1 ? I want everytime 80.0 increased like: 80.1, 80.2, 80.3, 80.4 ..

Last edited by dFF; 07-18-2013 at 15:39.
dFF 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