A quick java program:
public static void main(String[] args) {
System.out.println(1.0/0.0);
}
Infinity
On Jul 10, 11:08 am, John Harrop <[email protected]> wrote:
> This is odd:
> user=> (/ 1.0 0.0)
> #<CompilerException java.lang.ArithmeticException: Divide by zero
> (NO_SOURCE_FILE:0)>
>
> Shouldn't it be Double/POSITIVE_INFINITY?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---