user=> (- (new Double "1786.28") (read-string "1786.28"))
0.0

Following uip on what Hugo said, modifying your code to a double
returns the following.


On Nov 27, 1:32 pm, "Hugo Duncan" <hugodun...@users.sourceforge.net>
wrote:
> On Fri, 27 Nov 2009 14:50:27 -0500, Nathan Cunningham  
>
> <penguin2...@gmail.com> wrote:
> > Apparently there are cases where read will return a slightly different
> > float then the Float constructor will. For example:
>
> > (- (new Float "1786.28") (read-string "1786.28"))
> > 2.929687502728484E-5
>
> read-string returns a Double for me...
>
> --
> Hugo Duncan

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to