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.
     
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook