abs
Returns the absolute value of the given value Array.
Example:
arrayOf(-1, 2, 0, -6).abs() // [1, 2, 0, 6]
Content copied to clipboard
Since
1.1.0
See also
abs
Returns the absolute value of the given value Array.
Example:
arrayOf(-1F, 2F, 0F, -6F).abs() // [1F, 2F, 0F, 6F]
Content copied to clipboard
Since
1.1.0
See also
abs
Returns the absolute value of the given value Array.
Example:
arrayOf(-1.0, 2.0, 0.0, -6.0).abs() // [1.0, 2.0, 0.0, 6.0]
Content copied to clipboard
Since
1.1.0
See also
abs
Returns the absolute value of the given value Array.
Example:
arrayOf(-1L, 2L, 0L, -6L).abs() // [1L, 2L, 0L, 6L]
Content copied to clipboard
Since
1.1.0
See also
abs
Returns the absolute value of the given value Iterable.
Example:
listOf(-1, 2, 0, -6).abs() // [1, 2, 0, 6]
Content copied to clipboard
Since
1.1.0
See also
abs
Returns the absolute value of the given value Iterable.
Example:
listOf(-1F, 2F, 0F, -6F).abs() // [1F, 2F, 0F, 6F]
Content copied to clipboard
Since
1.1.0
See also
abs
Returns the absolute value of the given value Iterable.
Example:
listOf(-1.0, 2.0, 0.0, -6.0).abs() // [1.0, 2.0, 0.0, 6.0]
Content copied to clipboard
Since
1.1.0
See also
abs
Returns the absolute value of the given value Iterable.
Example:
listOf(-1L, 2L, 0L, -6L).abs() // [1L, 2L, 0L, 6L]
Content copied to clipboard
Since
1.1.0
See also
abs