<<< The Math.max and Math.min methods | Index | Integer and Double >>> |
double x = Math.random() * 100; // result is a value >= 0.0 and < 100.0 long result = (long) x; // converts the result from double to long
<<< The Math.max and Math.min methods | Index | Integer and Double >>> |