posted 13 years ago
I'm trying to round out a double (15,045) to the nearest 100 (i.e. 15,000). The reason I'm rounding out a double is because in an earlier calculation I needed to use a double to use the Math.pow(double, double) method. So now I'm left with a double that I want to round out but all I can find is Math.round(double) which returns a long and in any case doesn't do anything for me in trying to only get the nearest 100. Thanks.