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.33333334 (= (+ (float (* (/ 2) (/ 3))) (float (* (/ 2) (/ 3))) ) (/ 3) ) yields true How is tracking these number internally? And, why does it present the float version of 1/3, as rounded up? --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---