Hello(adsbygoogle = window.adsbygoogle || []).push({});

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

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Rounding statment

**Physics Forums | Science Articles, Homework Help, Discussion**