Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Rounding statment

  1. Sep 23, 2005 #1
    Hello

    I need to create a one line statment to round number up to nearest multiple of 5

    so if I have a number 22 the result should be 25
    so if I have a number 20 the result should be 20

    or does anybody know how to calculate floor function?

    Thanks
     
  2. jcsd
  3. Sep 23, 2005 #2

    DaveC426913

    User Avatar
    Gold Member

    This should be in the homework section, and you should show your attempts first.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Rounding statment
  1. Rounding issue (Replies: 9)

  2. Round down for n (Replies: 2)

  3. Rounding off numbers (Replies: 4)

Loading...