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

Lossing Units

SOLVED
Highlighted
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
Highlighted

Re: Lossing Units

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
Highlighted

Re: Lossing Units

And what if the unit is Temperature?

i.e

y = 30°C

and I would like to use y = 30.

HN

Highlighted

Re: Lossing Units

y = 30°C

y:=y/K-273.15

y=30

x = 30 bar

x:=x/bar

x=30

Highlighted

Re: Lossing Units

And what if the unit is Temperature?

Thats more critical but Valery already showed how to do.

LooseUnits1.png

Highlighted

Re: Lossing Units

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

Untitled.png

Highlighted

Re: Lossing Units

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

Highlighted

Re: Lossing Units

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

Highlighted

Re: Lossing Units

See one real task - air density:

1-1-M15.png

Announcements