What does math.hypot, math.abs and math.signmum do?


1 2 3 4 5 6 7 8 9 10 11 12 13 14 | public void act() { int rn=Greenfoot.getRandomNumber( 100 )- 50 ; int sgnm=Math.signum(rn); if (sgnm== 1 ) { //code } if (sgn== 0 ) { //code } if (sgn==- 1 ) { //code } } |