View Single Post
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