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.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

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

  2. Round down for n (Replies: 2)

  3. Rounding off numbers (Replies: 4)