Math.copySign()
next → ← prev
Last Updated : 17 Mar 2025
The java.lang.Math.copySign () is used to return the first argument with the sign of the second argument.
Output:
-740.4
580.73
-26.9
Next TopicJava Math
← prev next →