Newbie question about numbers
Scott Hickey <[email protected]> Tue, 23 Oct 2007 13:50:14 -0700 (PDT)
| Newsgroups | gmane.comp.java.sisc.user |
|---|---|
| Message-ID | <[email protected]> |
I'm new to Scheme. In Java, for business math, I declare all my numbers that participate in calculations as BigDecimal. In Scheme, I have seen that there is the notion of exactness. I understand that this should evaluate to false because the underlying representation is a double. #;> (eqv? 1.2 (+ 1.1 0.1)) #f It was my impression that putting #e in front of a litteral would for an exact representation, but the statement still fails. #;> (eqv? #e1.2 (+ #e1.1 #e0.1)) #f Any pointers to documentation that explains this further would be appreciated. Also, with siscweb, if I pull decimals out of a database, are they exact or inexact by default? Scott Hickey ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/