Math.floor
- From: "Tukewl4u" <TuKool4u@xxxxxxxxxxx>
- Date: Fri, 13 Oct 2006 22:42:16 -0500
Can someone direct me in the right direction on this? I just don't
understand what it's asking.
An Application of method.floor is rounding a value to the nearest integer.
The statement y = math.floor( x + 0.5 ); will round the number x to the
nearest integer and assign the result to y. Write an application that reads
double value and uses the preceding statement to round each of the numbers
to the nearest integer. For each number proceeded, display both the original
number and rounded number.
.
- Follow-Ups:
- Re: Math.floor
- From: Oliver Wong
- Re: Math.floor
- Prev by Date: Problem with public parameters in WSRP portlet
- Next by Date: Need to write up a justification document for using Java
- Previous by thread: Problem with public parameters in WSRP portlet
- Next by thread: Re: Math.floor
- Index(es):
Relevant Pages
|
|