This article explains better how it works: http://en.wikipedia.org/wiki/Floating_point#Accuracy_problems
Regards Plínio On Tue, Apr 9, 2013 at 9:27 AM, Rostislav Svoboda <rostislav.svob...@gmail.com> wrote: > Can anyone explain me please why I get: > > Clojure 1.5.1 > user=> (* 148.52 0.0256) > 3.8021120000000006 > > The correct result should be: > https://www.google.com/search?q=148.52+*+0.0256 > 3.802112 > > If you don't believe me try it on: http://tryclj.com/ > > thx > > Bost > > -- > -- > 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 > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > -- -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.