Hello Bill,

> user=> (bigint "1")
> 1
> user=> (bigint "1.5")
> java.lang.NumberFormatException: For input string:
> "1.5" (NO_SOURCE_FILE:0)
>
> Since 1.5 coerces to 1, shouldn't "1.5" also coerce to 1?
This comes from Java's implementation of BigInteger
user=> (new BigInteger "1.5")
java.lang.NumberFormatException: For input string:
"1.5" (NO_SOURCE_FILE:0)
user=> (new BigInteger "1")
1

However I agree Clojure should fix that.

All the best,
--
Miki

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