Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

rounding question

Status
Not open for further replies.

ACtrafficengr

Civil/Environmental
Jan 5, 2002
1,641
0
0
US
I'm looking for a way to round a value down to the next lower multiple of 5. For example, 39 is rounded to 35, not 40.

MROUND will round to the nearest multiple of 5. 39 will be rounded to 40.
ROUNDDOWN will round down to the nearest 10. 39 will be rounded to 30.

MROUND(n-2.5,5) seems to work. Any other ideas how to do this?

"...students of traffic are beginning to realize the false economy of mechanically controlled traffic, and hand work by trained officers will again prevail." - Wm. Phelps Eno, ca. 1928

"I'm searching for the questions, so my answers will make sense." - Stephen Brust

 
Replies continue below

Recommended for you

Perfect!

Thank you!

"...students of traffic are beginning to realize the false economy of mechanically controlled traffic, and hand work by trained officers will again prevail." - Wm. Phelps Eno, ca. 1928

"I'm searching for the questions, so my answers will make sense." - Stephen Brust

 
Status
Not open for further replies.
Back
Top