[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: number->string radix patch
From: |
Marius Vollmer |
Subject: |
Re: number->string radix patch |
Date: |
Mon, 10 May 2004 22:34:53 +0200 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) |
Richard Todd <address@hidden> writes:
> On Mon, Jan 05, 2004 at 06:36:07PM -0700, Robert Uhl wrote:
>> Although my one true project is to figure out number->string well enough
>> to make it Do the Right Thing for decimals in bases other than 10 (I'm a
>> big fan of duodecimal).
>
> I've seen this wish twice from you in the short time I've been
> watching guile-user, so I took a crack at it.
Ok, I have finally installed your patch. Thanks again! (I wrote a
basic ChangeLog entry, but please do that yourself for the next
patch.)
I used your examples as test cases, but cannot reproduce some:
> guile> (number->string 0.25 2)
> "0.01"
> guile> (number->string 11.33333333333333333 12)
> "B.4"
> guile> (number->string 1.324e44 16)
> "5.EFE0A14FAFEe24"
I get
guile> (number->string 0.25 2)
"0.010"
guile> (number->string 11.33333333333333333 12)
"B.400000000000009"
guile> (number->string 1.324e44 16)
"5.EFE0A14FAFDF8e24"
The first looks certainly wrong, but I'm not sure about the other two.
Richard, could you try to investigate this?
--
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405
- Re: number->string radix patch,
Marius Vollmer <=