chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] newbie question about numbers


From: Hugo Arregui
Subject: Re: [Chicken-users] newbie question about numbers
Date: Wed, 17 Feb 2010 14:50:53 -0300

Hi,

I have a few new questions about numbers:

Doing tests I find two values: flonum-precision (a variable) and
flonum-print-precision (a procedure), I suppose that the
flotnum-precision means the real working precision and the other one,
it's just for display. But, I tried:

;I'm using numbers extension

(flonum-print-precision) => 15

flonum-precision => 53

(exact->inexact (/ 1 7)) => 0.142857142857143 ; It's what I expected

(flonum-print-precision 100) ; it's right?

(exact->inexact (/ 1 7)) => 0.14285714285714285 ; I expect 53 decimals
at least.. why this happens?

There's a way to change the flonum-precision?

Btw, there's a place to read this things and avoid disturbing you?.

Thanks again,
Hugo.




reply via email to

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