# double value

fabio chumpitaz

Greenhorn

Posts: 4

posted 13 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: 9066

12

posted 13 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