65
Java Math.copySign() method
The java.lang.Math.copySign () is used to return the first argument with the sign of the second argument.
Syntax
Parameter
Return
Example 1
Output:
-740.4
Example 2
Output:
580.73
Example 3
Output:
-26.9
Next TopicJava Math