Re: Clojure's handling of numbers with a trailing decimal point

2009-05-04 Thread Stephen C. Gilardi
On May 4, 2009, at 9:51 AM, Rich Hickey wrote: May I please enter an issue to track it and provide a patch? Sure, thanks! Thanks. Entered as issue 113: http://code.google.com/p/clojure/issues/detail?id=113 --Steve smime.p7s Description: S/MIME cryptographic signature

Re: Clojure's handling of numbers with a trailing decimal point

2009-05-04 Thread Rich Hickey
On May 4, 8:11 am, "Stephen C. Gilardi" wrote: > Clojure's number syntax is documented athttp://clojure.org/readerto > be: > > Numbers - as per Java, plus indefinitely long integers are supported, > as well as ratios, e.g. 22/7. Floating point numbers with an M suffix > are read as BigDecimals.

Re: Clojure's handling of numbers with a trailing decimal point

2009-05-04 Thread Stephen C. Gilardi
Clojure's number syntax is documented at http://clojure.org/reader to be: Numbers - as per Java, plus indefinitely long integers are supported, as well as ratios, e.g. 22/7. Floating point numbers with an M suffix are read as BigDecimals. The enclosed posting reports an unnecessary diverg

Clojure's handling of numbers with a trailing decimal point

2009-04-24 Thread Stephen C. Gilardi
I noticed today that a series of digits with a trailing decimal point are read by Clojure as an Integer. user=> (class 123.) java.lang.Integer In contrast, Java reads such a number as a double. % javac Foo.java Foo.java:5: possible loss of precision fou