On page http://clojure.org/data_structures#toc2 there is written: "Any
numeric operation involving Doubles yields a Double."

Hope this helps,
Lauri

On Sun, Jan 17, 2010 at 12:13 AM, Jevgeni Holodkov
<jevgeni.holod...@gmail.com> wrote:
> Currently, if the result of the multiplication is too small, then the
> type will be double, despite the fact that one of the parameter was
> BigDecimal:
>
> Clojure 1.1.0
> user=> (* 100M 1.1)
> 110.00000000000001
> user=> (class (* 100M 1.1))
> java.lang.Double
>
> Such thing are really hard to find and this can be easily produced by
> non-technical person, if he is using some kind of DSL which is based
> on Clojure. Shoudn't it be BigDecimal instead?
>
> Wbr,
> Jevgeni
>
> --
> 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 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