answersLogoWhite

0

To round off to the nearest integer...

double a = {some value};

a = (int) (a + 0.5);

To round off to the nearest hundredth...

double a = {some value};

a = (int) (a * 100. + 0.5) / 100.;

These are just two examples.

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

How do you round off 4.988?

Rounded value is 5.


After performing a calculator operation do you round off the displayed value?

Yes. It does not have to be an exact value.


Round off to the nearest place value of 392?

ahm


Could you round off temperature data?

No because it is an absolute value


How do you round off 6.846 to the place value named?

Name the place value, and we'll zero in on it.


Where you pay off debt at face value plus interest is called?

maturity value


I need a list of as many moves as you can think of in tumbling. Floor moves of course. I need them in order from easiest-basic to hardest-complex. Thanks for your help. I need as much as I can get.?

forward roll backward roll handstand forward roll cartwheel roundoff front walkover backwalkover front handspring back handspring round off back handspring tuck round off tuck standing tuck bhs tuck round off back handspring layout round off layout bhs bhs layout bhs layout round off back handspring full roung off full bhs bhs full bhs full standing full round off back hand spring double full round off double full bhs bhs double full bhs double full standing double full


How to round off of the decimal place value?

losser kayong lahAT losser bobo


What is the round off 495 872 896 to the indicated place value in millions?

496000000


Round off 426÷1156 to the nearest whole number and its actual value?

1200


What is the round off greatest value of 21987?

Rounding to different numbers of significant figures, the greatest result is 22,000.21 987 round off theto its greatest value what is answer.


What is the greatest number that will round off to 300?

The greatest number that will round off to 300 is 300.49. When rounding to the nearest hundred, any number from 250 to 349 will round to 300, but 300.49 is the highest value before reaching 300.5, which would round to 301.