cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

How to specify an incremental ceiling value without going over?

dsochor
5-Regular Member

How to specify an incremental ceiling value without going over?

Is it possible in Mathcad to write a function that provides the nearest multiple of a value without going over a particular ceiling? For example, I have a maximum allowable bolt Ø of 0.33in. Bolts come in 0.125in (1/8in) Ø increments. I'd like Mathcad to provide me with a 0.25in Ø bolt size (as 0.375in exceeds 0.33in). I tried Ceil(0.33in,0.125in) but the result is 0.375in.

1 ACCEPTED SOLUTION

Accepted Solutions

3 REPLIES 3

It's possible

dsochor
5-Regular Member
(To:Fred_Kohlhepp)

Thank you Fred!

MJG
18-Opal
18-Opal
(To:dsochor)

Not sure what Fred's worksheet contains, but if you replace "Ceil" with "Floor", I think you'll get the results you want.

Top Tags