[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-janitors] #672: CR: Division by inexact zero results in infinit
From: |
Chicken Trac |
Subject: |
[Chicken-janitors] #672: CR: Division by inexact zero results in infinity (or nan) as per IEEE 754 |
Date: |
Wed, 24 Aug 2011 19:15:28 -0000 |
#672: CR: Division by inexact zero results in infinity (or nan) as per IEEE 754
----------------------------------------+-----------------------------------
Reporter: sjamaan | Owner:
Type: defect | Status: new
Priority: major | Milestone: 4.8.0
Component: core libraries | Version: 4.7.x
Keywords: numbers, flonums, IEEE 754 |
----------------------------------------+-----------------------------------
Current behaviour in Chicken core AND the numbers egg is not
IEEE754-compliant (afaik):
{{{
(/ 1.0 0.0) => error: division by zero
(/ -1.0 0.0) => error: division by zero
(/ 0.0 0.0) => error: division by zero
}}}
Should this be changed to return +inf.0, -inf.0 and +nan.0, respectively?
--
Ticket URL: <https://bugs.call-cc.org/ticket/672>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.
- [Chicken-janitors] #672: CR: Division by inexact zero results in infinity (or nan) as per IEEE 754,
Chicken Trac <=