Math.floor

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tukewl4u

    #1

    Math.floor

    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.




  • Oliver Wong

    #2
    Re: Math.floor

    "Tukewl4u" <TuKool4u@hotma il.comwrote in message
    news:u8SdndCcNq sAwa3YnZ2dnUVZ_ o6dnZ2d@entouch .net...
    Can someone direct me in the right direction on this? I just don't
    understand what it's asking.
    Next time, crosspost, don't multipost:


    Your question was already answered on another newsgroup.

    - Oliver


    Comment

    Working...