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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Round vector values to next highest dimensions?

dsochor
5-Regular Member

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.

1 ACCEPTED SOLUTION

Accepted Solutions

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

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.

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

Top Tags