- #1

- 91

- 0

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

You are using an out of date browser. It may not display this or other websites correctly.

You should upgrade or use an alternative browser.

You should upgrade or use an alternative browser.

- Thread starter powp
- Start date

- #1

- 91

- 0

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

DaveC426913

Gold Member

- 20,226

- 3,597

This should be in the homework section, and you should show your attempts first.

Share: