AP Computer Science A

study guides for every class

that actually explain what's on your next test

Math.abs()

from class:

AP Computer Science A

Definition

The Math.abs() method is a built-in function in Java that returns the absolute value of a number. It takes a single argument and can be used with both integer and floating-point numbers.

© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.