PureBytes Links
Trading Reference Links
|
Hello,
I follow IEEE.
Please look at the:
http://www.amibroker.com/bin/ab4298beta.exe
excerpt from the readme:
"infinite numbers are printed now as {INF}, not-a-numbers are printed as {NAN} by WriteVal.
For example:
"1/0 =" + WriteVal((1/0));
"0/0 =" + WriteVal(0/0);
"(1/0) / (1/0) =" + WriteVal((1/0)/(1/0));
"1 / (1/0) =" + WriteVal( 1 / ( 1 / 0 ) );
"Null =" +WriteVal(Null); "
Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: "twiga" <iong@xxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Wednesday, March 05, 2003 12:52 AM
Subject: [amibroker] [Tomasz] 1 / 0 = 0? : IEEE standard is = +infinity, not NaN
> 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/
>
>
>
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/
|