Operators::absOf()
"abs" is an abbreviation for "absolute value." The absolute value of a number is its distance from 0. A simpler way to describe an absolute value is that it makes any number positive. If it is negative, it becomes positive, and if it is positive, it stays the same.
Examples
Syntax
Java
.absOf(x)
.absOf(x)
Parameters
| Name | Data Type | Description |
|---|---|---|
| x | int | a value |
Return
int