Hi well, the code snippet you posted gives a negative result when both operands are negative. In the second sysout, though you have given a negative sign to print to console, while doing th actual calculation, you missed it, thats why the confusion i think. Let me know if i understand it properly(or if you ment something else in your problem statement) jhakda
[ April 09, 2008: Message edited by: Jhakda Velu ] [ April 09, 2008: Message edited by: Jhakda Velu ]
If I become filthy rich, I'll sponsor research for painless dental treatment at Harvard Medical School. Thats why,I'm learning Java.I have 32 teeth, 22 are man made.