When you take the absolute value of an integer value:(adsbygoogle = window.adsbygoogle || []).push({});

http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/Math.html#abs(int) [Broken]

Wondering if anyone can explain what abs does that makes it fail on the minimum integer value 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.

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Java Math.abs()

Loading...

Similar Threads for Java Math |
---|

Java Preferring Scanner to BufferedReader for taking input |

Java Android Studio: Accessing SQLite Data In RecyclerView |

Java: Which Term determines this is a Sum? |

Best IDEs for Java Dev Work? |

Java Java 10 is out! |

**Physics Forums | Science Articles, Homework Help, Discussion**