| 1 | package com.thealgorithms.maths; |
| 2 | |
| 3 | public final class AbsoluteValue { |
| 4 | private AbsoluteValue() { |
| 5 | } |
| 6 | |
| 7 | /** |
| 8 | * Returns the absolute value of a number. |
| 9 | * |
| 10 | * @param number The number to be transformed |
| 11 | * @return The absolute value of the {@code number} |
| 12 | */ |
| 13 | public static int getAbsValue(int number) { |
| 14 | return Math.abs(number); |
| 15 | } |
| 16 | } |
nothing calls this directly
no outgoing calls
no test coverage detected