Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.

>> REGISTER NOW TO START POSTING

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 ;(

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?

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.