[Top][All Lists]

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

Re: converting decimal to integer

From: Andreas Vögele
Subject: Re: converting decimal to integer
Date: Tue, 17 Aug 2004 18:18:38 +0200

Aurelien Chanudet aks:

How can I convert a decimal number to an integer number in Guile ? I need the following statement to work :

(vector-ref <some vector> (<function I'm looking for> 1.0))

(inexact->exact 1.0) or, more general, (inexact->exact (truncate z))

See section "6.4 Numbers" in Dybvig's book "The Scheme Programming Language" for details. The book is now available online at <

reply via email to

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