fabio chumpitaz

Greenhorn

Posts: 4

posted 14 years ago

find the ceiling of a double value and write a method to find its floor.

the ceiling of a number d is the smallest integer greater of equal d.

the floor of a number d is the largets integer less than or equal to d.

example...ceiling 5.4 is 6

floor 5.4 is 5

would someone help wiht this?

the ceiling of a number d is the smallest integer greater of equal d.

the floor of a number d is the largets integer less than or equal to d.

example...ceiling 5.4 is 6

floor 5.4 is 5

would someone help wiht this?

Marilyn de Queiroz

Sheriff

Posts: 9079

12

posted 14 years ago

There are methods in the Math class for this.

JavaBeginnersFaq

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt

Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |