MathCAD 15 - strip variable's units?
MathCAD 15 - strip variable's units?
(OP)
I've run into various situations where it would be useful to just simply strip the units off of a variable, so you are only left with the scalar value.
...or even just using a function to check the units of a variable that is already defined.
I've never been able to find anything, but is there a built-in function or a convention for stripping away the units?
...or even just using a function to check the units of a variable that is already defined.
I've never been able to find anything, but is there a built-in function or a convention for stripping away the units?

RE: MathCAD 15 - strip variable's units?
P := 100lbf
Pscalar := P/lbf
...but I can't recall if I have ever solved that problem yet.
RE: MathCAD 15 - strip variable's units?
I just don't know if it's possible...
CODE --> Pseudocode
RE: MathCAD 15 - strip variable's units?
You have to track it on your own, but you'd be doing that anyway with your unit stripping function.
RE: MathCAD 15 - strip variable's units?
TTFN (ta ta for now)
I can do absolutely anything. I'm an expert! https://www.youtube.com/watch?v=BKorP55Aqvg
FAQ731-376: Eng-Tips.com Forum Policies forum1529: Translation Assistance for Engineers Entire Forum list http://www.eng-tips.com/forumlist.cfm
RE: MathCAD 15 - strip variable's units?
As IRstuff says, you can use the "UnitsOf" function, but it divides by the base units. How would a fully automated solution that strips the units of any / all variables know whether you wanted the scalar answer for a 10 kilogram mass (say) to be given as 0.01 (tonnes), 10 (kg), 10000 (g), 22.046 (pounds) or 352.74 (ounces)?
http://julianh72.blogspot.com
RE: MathCAD 15 - strip variable's units?
RE: MathCAD 15 - strip variable's units?
P/UnitsOf(P)returns 1.112 X 10^4 regardless of which Unit System is chosen. Seems to be identical with the SIUnitsOf function.
RE: MathCAD 15 - strip variable's units?
TTFN (ta ta for now)
I can do absolutely anything. I'm an expert! https://www.youtube.com/watch?v=BKorP55Aqvg
FAQ731-376: Eng-Tips.com Forum Policies forum1529: Translation Assistance for Engineers Entire Forum list http://www.eng-tips.com/forumlist.cfm