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

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Lossing Units

h_nas
4-Participant

Lossing Units

Hi,

I have a variable which is x = 30 bar, I need to use this number without the unit, i.e. I would like Mathcad to look at x = 30 only with out units, Is there a way to do so?

Regards,

HN

1 ACCEPTED SOLUTION

Accepted Solutions
RogerYeh
1-Newbie
(To:h_nas)

Temperature can be a bit tricky in Mathcad. This blog helps:

http://blogs.ptc.com/2012/12/20/the-trickiness-of-temperature-units/

'UnitsOf' will return the result in Kelvins.

Untitled.png

View solution in original post

7 REPLIES 7
h_nas
4-Participant
(To:h_nas)

And what if the unit is Temperature?

i.e

y = 30°C

and I would like to use y = 30.

HN

y = 30°C

y:=y/K-273.15

y=30

x = 30 bar

x:=x/bar

x=30

Werner_E
24-Ruby V
(To:h_nas)

And what if the unit is Temperature?

Thats more critical but Valery already showed how to do.

LooseUnits1.png

RogerYeh
1-Newbie
(To:h_nas)

For SI units, the SIUnitsOf (or UnitsOf) function can be handy:

Untitled.png

h_nas
4-Participant
(To:RogerYeh)

Thank you, this function is new to me, however It does work for pressure, but it doesn't work with temperature:(

RogerYeh
1-Newbie
(To:h_nas)

Temperature can be a bit tricky in Mathcad. This blog helps:

http://blogs.ptc.com/2012/12/20/the-trickiness-of-temperature-units/

'UnitsOf' will return the result in Kelvins.

Untitled.png

See one real task - air density:

1-1-M15.png

Top Tags