On Fri, Jul 10, 2009 at 9:22 AM, Rich Hickey <richhic...@gmail.com> wrote:

> On Jul 10, 9:01 am, Chouser <chou...@gmail.com> wrote:
> > On Fri, Jul 10, 2009 at 7:14 AM, John Harrop<jharrop...@gmail.com>
> wrote:
> > > It would be useful to have a *math-context* or similar that had a
> sensible
> > > default and could be set with binding to affect bigdec calculations
> within
> > > the temporal scope of said binding.
> >
> > user=> (binding [*math-context* (java.math.MathContext. 5)] (+ 2
> 1.111111111M))
> > 3.1111M
>
> See also: with-precision
>

Eh. Thanks. There's no *math-context* on the api page at the web site. I
just checked again. I'll keep it in mind though.

--~--~---------~--~----~------------~-------~--~----~
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