Look into the java api, API it says for the abs method of Math class:

Note that if the argument is equal to the value of Integer.MIN_VALUE, the most negative representable int value, the result is that same value, which is negative.

So, u get such output.

I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com

subject: Math.abs(Integer.MIN_VALUE)) not returning abs val