Jacques
On Wednesday, May 16, 2012 3:54:14 PM UTC+2, Tim Visher wrote:
>
> On Tue, May 15, 2012 at 12:11 PM, JDuPreez wrote:
> > Maybe I should post my solution to this problem here?
>
> Sounds like a plan. :)
>
--
You received this message because you are subscribed to
Stefan,
Thank you for your reply. You are referring to applying an annotation to an
instance/object.
If we could imagine it existed for the moment, this is what I'd be looking
for:
(meta {:foo "meta"} (defrecord Foo (bar baz)))
I should then somehow be able to retrieve the metadata of the type
Hi,
I'm new to Clojure. I've been unsuccessful in finding a clear answer or
getting it to work (might just have done it incorrectly, since I'm still
learning). I understand that you can add metadata to an object,
"with-meta", and to a variable or parameter, "^{:". However, I would like
to appl
Thanks so much for your answers.
OK. So from the solutions above I understand that Clojure does not
have C#'s equivalent of Math.round(7.127298, 2), and requires either
using some custom method or Java's rounding?
I think I'll rather go with the Java-interop approach.
On Mar 23, 11:13 pm, Joost
I'm trying to round a decimal number like 78.37898794 to say 78.379,
without converting it to a string. I've been struggling to get this
right and to get info on it. The closest that I've found is to use:
format "%.3f". But format converts the number to a string. Not exactly
what I'm trying to do.