Skip to main content
1-Visitor
June 12, 2013
Solved

Round vector values to next highest dimensions?

  • June 12, 2013
  • 2 replies
  • 1715 views

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.

Best answer by Werner_E

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.

2 replies

Werner_E25-Diamond IAnswer
25-Diamond I
June 12, 2013

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.

25-Diamond I
June 13, 2013

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