NetBeansв„ў IDE Field Guide: Developing Desktop, Web, Enterprise, and Mobile Applications (2nd Edition)

The abs() function returns the absolute value of a number. For example, «abs(-3) » returns 3 .

Argument

Data Type

Meaning

input

Numeric

The supplied number

Result

Numeric

The absolute value of the supplied number. The result has the same type as the input

Категории