About 58,300 results
Open links in new tab
  1. Java Math abs () method with Examples - GeeksforGeeks

    Jul 11, 2025 · The java.lang.Math.abs () returns the absolute value of a given argument. If the argument is not negative, the argument is returned. If the argument is negative, the negation of the argument is …

  2. Java Math abs () Method - W3Schools

    Definition and Usage The abs() method returns the absolute (positive) value of a number.

  3. Math (Java Platform SE 8 ) - Oracle Help Center

    The class Math contains methods for performing basic numeric operations such as the elementary exponential, logarithm, square root, and trigonometric functions.

  4. Java Math abs () - Programiz

    In this tutorial, we will learn about the Math abs () method with the help of examples.

  5. Java Math abs () method - CodeGym

    Jan 3, 2025 · In Java, the Math class is part of the java.lang package, which is automatically imported. Therefore, you can use the Math.abs() function directly without any explicit import statement. Here's …

  6. Java - Math.abs () Method - Online Tutorials Library

    In this example, we're showing the usage of Math.abs () method to get absolute value of an int. We've created two Integer variable x and y and initialized them with negative and positive values.

  7. Java Math.abs () method - Tpoint Tech

    Mar 17, 2025 · The java.lang.Math.abs () method returns the absolute (Positive) value of a int value. This method gives the absolute value of the argument. The argument can be int, double, long and …

  8. Java abs method to find absolute value - Tutorial Gateway

    The Java abs method is a Math Library function which returns the absolute Positive value of the specified expression or an individual number.

  9. Java Math abs () Method

    The Math.abs() method in Java is used to return the absolute value of a number. This guide will cover the method's usage, explain how it works, and provide examples to demonstrate its functionality for …

  10. Absolute Value Abs () in Java: Beginner to Advanced Guide

    Aug 27, 2025 · In this comprehensive guide, we’ll explore everything you need to know about Java absolute value operations, from basic syntax to advanced use cases and performance optimization …