math java

71

math class in java -

double roundedDown = Math.round(23.445);
double roundedUp   = Math.round(23.545);
// rounds up and down from float or double

math class in java -

int max = Math.max(10, 20);
//returns largest of two value in parameter

Comments

Submit
0 Comments