bugKawa - Bugs: bug #39222, `numerator` and `denominator` do...

 
 

bug #39222: `numerator` and `denominator` do the wrong thing on inexacts

Submitted by:  None
Submitted on:  Mon 10 Jun 2013 07:03:52 PM UTC  
 
Category: Scheme languageSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Per Bothner <bothner>
Open/Closed: Closed

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 24 Oct 2014 08:05:35 PM UTC, comment #2:

I checked in a fix for this. Likewise for gcd and lcm.

Per Bothner <bothner>
Project AdministratorIn charge of this item.
Mon 10 Jun 2013 07:31:37 PM UTC, comment #1:

My preliminary response: This is a bug in R5RS and R7RS.
(numerator 5.5) should be a type error.

Per Bothner <bothner>
Project AdministratorIn charge of this item.
Mon 10 Jun 2013 07:03:52 PM UTC, original submission:

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.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bothner (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 24 Oct 2014 08:05:35 PM UTCbothnerStatusNone=>Fixed
      Assigned toNone=>bothner
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup