Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ceiling for numbers with unit

Status
Not open for further replies.

hoshang

Civil/Environmental
Jul 18, 2012
484
Hi,
How Ceiling is found for numbers associated with units using Mathcad? For example:
Ceil (48.659 in)
 
Replies continue below

Recommended for you

Hoshang

There is a way (floor also): I shall look it up (have to find correct sheets) and I will advise.

Regards

Ed

Ed Clymer
Resinfab & Associates
England
 
Mathcad converts EVERYTHING to its native units, which is SI. Therefore, even if a function allows for units, you should probably do something like:

ceil(dimension/inch)*inch to preserve the dimensions desired

len_kb7evi.jpg


TTFN (ta ta for now)
I can do absolutely anything. I'm an expert! faq731-376 forum1529 Entire Forum list
 
Hoshang

My MathCAD 2000 (best ever version) came on a disc and with a 700 page printed manual.

It (the manual)says;

floor(x) Greatest integer <= x (x real)

ceil (x) same

It does work..

However, see attachment for use with units.

Pleased to be of help


Regards

Ed



Ed Clymer
Resinfab & Associates
England
 
 https://files.engineering.com/getfile.aspx?folder=750d03da-3269-4351-aebe-34cae2aa839d&file=Floor_and_Ceil_with_millimetres.mcd
Use scale:=1/mm instead of scale:=m/mm

Remark: I am not sure if Mathcad 2000 already provided the built-in fuction "Ceil" (note the capital C).
If its available in your version you can use it like "Ceil(18.2 mm, mm)=...mm"
If not you may define your own: Ceil(a,b):=ceil(a/b)*b
 
rmix22

I have checked the manual; and it says ceil (lower case)
and it does work in that format. MathCAD 200 does have ceil and floor
as built in functions.

I hope this time the file is attached.

Regards

Ed

Ed Clymer
Resinfab & Associates
England
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor