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

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

help in units

ptc-3256224
1-Newbie

help in units

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

7 REPLIES 7

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

Thanks for information

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

Sorry - Ceil etc are built-in functions in Mathcad:

Ceil.png

See also http://twt.mpei.ac.ru/MCS/Worksheets/FMC/C-eil.xmcd

how small "ceil" works.

Actually the answer I required is 0.01.

previouslly I used formula round(MAXRB,3)=0.01

my Manager told me to replace round by ceil

but as I am following your shown formula answer is coming 1

I am leaving office now.Hope to get answer.

see you tomorrow.

Valery Ochkov wrote:

Sorry - Ceil etc are built-in functions in Mathcad:

Tnx for pointing that out, Valery, I wasn't aware of that and reinvented the wheel 😉

@Kamlakar: As you wish to round, "ceil" or rather "floor" to hundreths of inch, you should use

ceil4.png

Note that Floor and Trunc are the same for positive values only.

Dont know how one can expect to get 0.01 by using round or ceil.

Top Tags