Java Math.signum() methodThe java.lang.Math.signum () is used to find the sign of a given value. SyntaxParameterReturn
Example 1Test it NowOutput: 1.0 Example 2Test it NowOutput: -1.0 Example 3Test it NowOutput: 0.0 Example 4Test it NowOutput: NaN
Next TopicJava Math
|