double up to an int?
One of hundreds of answers available with our premium content service.
A: To round a double value up and convert it to an int value takes two operations. The static Math.ceil(double) method returns a double value that is equal to the "next highest" integer. You must then give an explicit down cast to an int, as below.
… full answer hidden
Premium members click below for full answer
How should I round a double up to an int?
Your premium content subscription is a single payment that gives you: