On Jul 27, 11:45 am, Andrea Tortorella <elian...@gmail.com> wrote:
> Hi everyone,
> I don't know where to post about bugs (if this is a bug).
> Anyway in clojure 1.3 with the new numerics:
>
> (format "%d" 2N)
>
> throws IllegalFormatConversionException, is it a bug? are there any
> workarounds?

Unlikely to change anytime soon: format just calls
java.util.Formatter.format; if you look at the source of that, it
tests for each built-in numeric type specially, instead of using
Number. But you can probably use the %s specifier, since converting it
to a string is unlikely to do much harm.

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