[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] [Tomasz] 1 / 0 = 0? : IEEE standard is = +infinity, not NaN



PureBytes Links

Trading Reference Links

Why do you not follow IEEE standards in all arithmetic? They are well 
thought out and the best compromises to doing arithmetic on a 
computer. According to IEEE, 1/0 is not Nan, it is +Infinity (largest 
positive floating point number):

<<Topic: Division by Zero
Relevant Clause: Subclause 7.2 

In IEEE Std 754-1985, subclause 7.2- Division by Zero, it says:

"If the divisor is zero and the dividend is a finite nonzero number, 
then the division by zero shall be signaled. The result, when no trap 
occurs, shall be a correctly signed (infinity symbol)(6.3)." >>

For additional information see as to the heavy thinking behind this 
see:

http://standards.ieee.org/reading/ieee/interp/754-1985.html


Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/