Hello,

This should work (I think): (unchecked-divide 1257316459070 1000)
<CompilerException java.lang.IllegalArgumentException: No matching
method found: unchecked_divide

A workaround: (unchecked-divide 1257316459070 (long 1000))
1257316459

It would be nice if Clojure would auto-promote the number 1000 to a
long. As it stands, Clojure expects you to know if the first argument
is a long or an int and manually cast accordingly.

Some systems keep seconds since the epoch. Since Java provides ms
since the epoch I want to divide by 1000.

I can't send these systems fractions either :-)  (/ 1257316459070
1000) = 125731645907/100

Cheers.


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

Reply via email to