PHP Code:
new Devident = 16
new Devisor = 24
new Float:result = floatdiv( float(Devident), float(Devisor) )
first it was just
PHP Code:
float(Devident) / float(Devisor)
but then i thought that floatdiv() might help, but it does calculations exactly the same way.
it devides 16 by 24 and gets 0.761904 while windows calc.exe gets 0,695652
Devident | Devisor |what amxx gets | what calc.exe gets:
17 by 23 = ( 0.809523 ) against 0,73913043478260869565217391304348
11 by 18 = ( 0.647058 ) against 0,61111111111111111111111111111111
11 by 15 = ( 0.785714 ) against 0,73333333333333333333333333333333
11 by 20 = ( 0.578947 ) against 0,55
9 by 16 = ( 0.600000 ) against 0,5625
what and where is wrong and how it can be fixed?
__________________