chicken-janitors
[Top][All Lists]
Advanced

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

[Chicken-janitors] #804: #i and #e don't work correctly in the numbers e


From: Chicken Trac
Subject: [Chicken-janitors] #804: #i and #e don't work correctly in the numbers egg
Date: Wed, 21 Mar 2012 22:12:21 -0000

#804: #i and #e don't work correctly in the numbers egg
------------------------+---------------------------------------------------
 Reporter:  johnwcowan  |       Owner:       
     Type:  defect      |      Status:  new  
 Priority:  major       |   Milestone:  4.8.0
Component:  extensions  |     Version:  4.7.x
 Keywords:              |  
------------------------+---------------------------------------------------
 `#e1e400` currently returns `+inf.0` rather than exact 10^400^.

 `#e2.3` currently returns `2.3` rather than `23/10`

 `#i1/2` currently returns `1/2` instead of `0.5`

 `#e+inf.0` currently returns `+inf.0` instead of reporting an error

 No warnings should be printed.

 A reasonable strategy is to look for `#i` and `#e`, and failing that, look
 for `.` and `e`.  That determines which converter should be used, the
 exact-arithmetic one or the inexact-arithmetic one. Other than infinities
 and NaNs, both converters should accept the same input and do the right
 thing with it.

-- 
Ticket URL: <http://bugs.call-cc.org/ticket/804>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.

reply via email to

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