Skip to main content
1-Visitor
June 13, 2013
Question

help in units

  • June 13, 2013
  • 1 reply
  • 3806 views

I am putting formula for ceil(MAXRB) but it shows units are not compatible.

1 reply

25-Diamond I
June 13, 2013

We had the same subject just in a different thread http://communities.ptc.com/message/206974#206974

Unfortunately ceil, as a lot of other functions, too, only work on scalars and not with units. So you have to get rid of the units and add them again later.

ceil1.png

1-Visitor
June 13, 2013

Thanks for information

25-Diamond I
June 13, 2013

This behaviour makes sense. Lets look at a variable x:=50.5 in (= 1.283 m = 4.208 ft).

What should ceil(x) return? Mathcad stores the lenght in the default unit (maybe m) and the dimension. So ceil(x) could be anything like 51 in, 2 m or 5 ft.

You could write your own Ceil-function, but the desired unit would have to be a paremeter of that function:

ceil2.png