bug-kawa
[Top][All Lists]
Advanced

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

[Bug-kawa] [bug #39222] `numerator` and `denominator` do the wrong thing


From: anonymous
Subject: [Bug-kawa] [bug #39222] `numerator` and `denominator` do the wrong thing on inexacts
Date: Mon, 10 Jun 2013 19:03:53 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.110 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?39222>

                 Summary: `numerator` and `denominator` do the wrong thing on
inexacts
                 Project: Kawa
            Submitted by: None
            Submitted on: Mon 10 Jun 2013 07:03:52 PM UTC
                Category: Scheme language
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Kawa gives a type error if you try (numerator 5.5) or (denominator 5.5),
instead of converting the inexact value to a ratio, getting the ratio
numerator or denominator, and then making it inexact again.  This is what R5RS
and R7RS demand, because the argument can be any rational number, exact or
inexact.

I've reported this bug for Chicken and Chibi, and I'm going to do so for
RScheme and S7 too.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?39222>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]