1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
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

    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?

  2. jcsd
  3. Sep 23, 2005 #2


    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