[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-janitors] #1418: #e1e500 is not exact (numbers egg, possibly Ch
From: |
Chicken Trac |
Subject: |
[Chicken-janitors] #1418: #e1e500 is not exact (numbers egg, possibly Chicken 5 as well) |
Date: |
Sun, 17 Sep 2017 18:58:48 -0000 |
#1418: #e1e500 is not exact (numbers egg, possibly Chicken 5 as well)
------------------------+-------------------------------
Reporter: johnwcowan | Owner:
Type: defect | Status: new
Priority: major | Milestone: 5.0
Component: unknown | Version: 4.12.0
Keywords: | Estimated difficulty:
------------------------+-------------------------------
Per R5RS and later standards, `#e1e500` is the same as
10000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000.
But this is not so in Chicken, which treats `#e` the same as calling
`inexact->exact`, and so returns `+inf.0`, which is neither exact nor
correct. When `#e` is present, the result needs to be computed by
bignum/ratio arithmetic, even if what follows is a decimal fraction.
--
Ticket URL: <https://bugs.call-cc.org/ticket/1418>
CHICKEN Scheme <https://www.call-cc.org/>
CHICKEN Scheme is a compiler for the Scheme programming language.
- [Chicken-janitors] #1418: #e1e500 is not exact (numbers egg, possibly Chicken 5 as well),
Chicken Trac <=