Clojure infinite loop

2009-03-06 Thread mike.farn...@gmail.com
Hi, Having attend Stu Halloway's talk on Clojure, at NFJS, I decided to download it and check it out. The language seems like a perfect fit for some database set manipulation that I do, and may need to do in the future. So, I downloaded clojure and started it up with the command: java -cp clojur

float vs fraction (just playing around)

2009-03-06 Thread mike.farn...@gmail.com
I thought it neat that clojure supports fractions (just like Smalltalk). user=> (/ 3) 1/3 I was sort of surprised by this. user=> (+ (float (* (/ 2) (/ 3))) (float (* (/ 2) (/ 3))) ) 0.3334 (= (+ (float (* (/ 2) (/ 3))) (float (* (/ 2) (/ 3))) ) (/ 3) ) yields true How is tracking these

Re: float vs fraction (just playing around)

2009-03-06 Thread mike.farn...@gmail.com
er. I was also playing with "with-precision" and "rounding". On Mar 6, 9:06 pm, David Sletten wrote: > On Mar 5, 2009, at 8:00 PM, mike.farn...@gmail.com wrote: > > > > > I thought it neat that clojure supports fractions (just like > > Smalltalk).