Skip to content

Instantly share code, notes, and snippets.

@odyssomay
Created May 18, 2011 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save odyssomay/978643 to your computer and use it in GitHub Desktop.
Save odyssomay/978643 to your computer and use it in GitHub Desktop.
Clojure unchecked double division
public class Div {
public static double divide_double(double x, double y) {
return x / y;
}
}
; To use the above in clojure
(import 'Div)
(println (Div/divide-double 1.0 0.0))
; => Infinity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment