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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Round vector values to next highest dimensions?

dsochor
10-Marble

Round vector values to next highest dimensions?

Is there a command (or a way to use the round command) that will take a vector of difference lengths in inches and round each value to the next highest inch? I've attached a sample MathCAD 14 worksheet.

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:dsochor)

Like this?

roundinch.png

The problem is, that a lot of Mathcad functions won't accept units, so you have to get rid of them and add them later again. This applies to round and also to ceil, floor and trunc.

View solution in original post

2 REPLIES 2
Werner_E
25-Diamond I
(To:dsochor)

Like this?

roundinch.png

The problem is, that a lot of Mathcad functions won't accept units, so you have to get rid of them and add them later again. This applies to round and also to ceil, floor and trunc.

Werner_E
25-Diamond I
(To:dsochor)

For completeness sake:

As Valery just pointed out in another thread http://communities.ptc.com/message/207043#207043, Mathcad has built in functions Round() and Ceil(), etc. which take care of the units. I wasn't aware of that.

ceil3.png

Announcements

Top Tags