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

SOLVED
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

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.

7 REPLIES 7
4-Participant
(in response 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

 And what if the unit is Temperature?

Thats more critical but Valery already showed how to do.

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

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

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.

See one real task - air density:

Announcements
Check out the latest