1 Pages (5 items)
Energy / Temperature "Units don't match" error - Cannot divide energy by °C or °F, but can divide by K or °Ra - Messages
#1 Posted: 11/29/2021 11:29:41 PM
Dividing energy by temperature results in three different outputs, depending on how the units are divided:
When using units as you normally would, the following results:

A workaround for this is to simply add a coefficient to the temperature units as shown below:

This workaround is NOT required when using absolute temperature units, nor when the units are stored separately in variables:

However, specifying output units causes problems. When specifying units with relative temperature, again the "Units don't match" error appears:

And when the output units are specified with an absolute temperature, the temperature units aren't properly reconciled, which produces odd behaviour, and a similarly poor outcome results from using the workaround above to specify the output units:

I hope this provides enough detail to reproduce the issue accurately.
Cheers.
- "Units don't match" error
- Inconsistent/incorrect units displayed
- No problem or error
When using units as you normally would, the following results:

A workaround for this is to simply add a coefficient to the temperature units as shown below:

This workaround is NOT required when using absolute temperature units, nor when the units are stored separately in variables:

However, specifying output units causes problems. When specifying units with relative temperature, again the "Units don't match" error appears:

And when the output units are specified with an absolute temperature, the temperature units aren't properly reconciled, which produces odd behaviour, and a similarly poor outcome results from using the workaround above to specify the output units:

I hope this provides enough detail to reproduce the issue accurately.
Cheers.
#2 Posted: 11/30/2021 12:56:55 AM
#3 Posted: 11/30/2021 4:30:18 AM
I agree, that is confusing.
Thanks for the clarification and the workaround.
Thanks for the clarification and the workaround.
#4 Posted: 11/30/2021 9:37:10 AM
1 Pages (5 items)
-
New Posts
-
No New Posts