• December 28th, 2012, 06:44 AM
panzel
Hello so this is my first time here.
I just wanna need some help because i'm still a newbie in programming.
well, so this is my problem..

how to compute the ceiling and floor of 5.4 in java WITHOUT USING MATH CLASS (math.ceil or math.floor)

--- Update ---

Sorry if I posted it in a wrong section ;(
• December 28th, 2012, 07:55 AM
Norm
What have you done so far to solve your problem?
Can you describe what the ceiling and floor values are for 5.4?
The description should help you work out the logic for computing the values.
Given 5.4 what is the ceiling and how do you get it?
Given 5.4 what is the floor and how do you get it?
• December 28th, 2012, 07:06 PM
panzel
Quote:

Originally Posted by Norm
What have you done so far to solve your problem?
Can you describe what the ceiling and floor values are for 5.4?
The description should help you work out the logic for computing the values.
Given 5.4 what is the ceiling and how do you get it?
Given 5.4 what is the floor and how do you get it?

Honestly I don't know what to do first, what I know to get the ceiling of 5.7 is using a math class(math.ceil)
I wanna know now is how to get it without using math classes. I'm going crazy now. Please help me. :(
• December 28th, 2012, 07:11 PM
Norm