Raised This Month: $ Target: $400
 0% 

[fixed]devide float by float AMXX problems


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Owyn
Veteran Member
Join Date: Nov 2007
Old 04-03-2011 , 06:25   [fixed]devide float by float AMXX problems
Reply With Quote #1

PHP Code:
new Devident 16
new Devisor 24
new Float:result floatdivfloat(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?
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.
Owyn is offline
Send a message via ICQ to Owyn
 



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 14:32.


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