long datatype rounding?

Given two long values a = -86399999 and b = 86400000, a/b gives me 0. If the values were of type double the result is -0.999999988425926. Why am I not getting float = -1? Is there a way to get long = -1 in this case?Thanks for any input.
[251 byte] By [filtorontoa] at [2007-10-2 5:29:43]
# 1
Sorry, I meant why am I not getting long = -1, not float = -1.
filtorontoa at 2007-7-16 1:31:17 > top of Java-index,Java Essentials,Java Programming...
# 2
That's the way the integer division works, check with JLS: http://java.sun.com/docs/books/jls/third_edition/html/expressions.html#15.17.2
bellyrippera at 2007-7-16 1:31:17 > top of Java-index,Java Essentials,Java Programming...
# 3
int math simply chops of the point.Use Math.round( float math )?
mlka at 2007-7-16 1:31:17 > top of Java-index,Java Essentials,Java Programming...