[Top][All Lists]
[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.
- [Chicken-users] newbie question about numbers, Hugo Arregui, 2010/02/07
- Re: [Chicken-users] newbie question about numbers, Peter Bex, 2010/02/07
- Re: [Chicken-users] newbie question about numbers, Peter Bex, 2010/02/07
- Re: [Chicken-users] newbie question about numbers, Hugo Arregui, 2010/02/09
- Re: [Chicken-users] newbie question about numbers,
Hugo Arregui <=
- Re: [Chicken-users] newbie question about numbers, John Cowan, 2010/02/17
- Re: [Chicken-users] newbie question about numbers, Kon Lovett, 2010/02/17
- Message not available
- Message not available
- Re: [Chicken-users] newbie question about numbers, Hugo Arregui, 2010/02/18
- Re: [Chicken-users] newbie question about numbers, Hugo Arregui, 2010/02/18