1 страниц (5 вхождений)
Energy / Temperature "Units don't match" error - Cannot divide energy by °C or °F, but can divide by K or °Ra - Сообщения
#1 Опубликовано: 29.11.2021 23:29:41
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 Опубликовано: 30.11.2021 00:56:55
#3 Опубликовано: 30.11.2021 04:30:18
I agree, that is confusing.
Thanks for the clarification and the workaround.
Thanks for the clarification and the workaround.
#4 Опубликовано: 30.11.2021 09:37:10
1 страниц (5 вхождений)
-
Новые сообщения
-
Нет новых сообщений