That's because ratios are intended to get you arbitrary precision.
That would not work so well if they used Longs for their numerator and
denominator.

On 29 March 2013 14:11, Peter Mancini <[email protected]> wrote:
> (class 1) java.lang.Long ;check!
> (class (* (/ 1 255) 254)) clojure.lang.Ratio ;check!
> (class (* (/ 1 255) 255)) clojure.lang.BigInt ;WAT?
>
> Should not example 3 and example 1 end up the same? (Noob question, I know,
> but this didn't make sense to me and I thought I was doing something wrong
> when I saw 1N coming back.)
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to [email protected]
> Note that posts from new members are moderated - please be patient with your
> first post.
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to