Forums Register Login

double value

+Pie Number of slices to send: Send
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?
+Pie Number of slices to send: Send
This is the same reply as your other requests.
Sorry, we don't do homework.
We would be happy to help with specific requests if you have any.
Dave
+Pie Number of slices to send: Send
There are methods in the Math class for this.
+Pie Number of slices to send: Send
fabio,
Welcome to JavaRanch!
How have you thought to perhaps begin to solve this problem?
permaculture is giving a gift to your future self. After reading this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 718 times.
Similar Threads
output needs to be explained
sun sample mock q
Confusion Math.random()
Round for negative nr
Math.floor( )
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 14:25:30.