Online Java signum() function

signum - Returns the sign of x


Run on Java version: