Skip to content

Different behavior for unit conversion "degC" and "K" #2499

@kaytak

Description

@kaytak

Hello,
Thank you for making a good work, I use mathjs as a core library in my engineering calculator tool.
In the contexts of heat transfer calculation, I evaluate the following calculation and I got the correct result.

math.evaluate('0.1 kg/s * 4.2 J/K/g * 5 K').toString()
=> '2.10... kW'

However, when I replace "K" with "degC", which shall give the identical result here, the result seems wrong:
math.evaluate('0.1 kg/s * 4.2 J/degC/g * 5 degC').toString()
=> '0.42... kW'

Could you please check this problem?

Best regards,

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions