josdejong / josdejong/mathjs

Behavior of evaluate for units changed between minor versions

Open
#2,518 17 comments 0 reactions 0 assignees View on GitHub
bug category:units
Dominant language
JavaScript
Stars
15.1k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

It seems that somewhere between versions 10.4.0 and 10.4.2, the behavior of the evaluate function for unit types has changed and is inconsistent. A small reproduction case is this:

10.4.0:
`evaluate( '37 degC == 98.6 degF' ) ===> true`

10.4.2:
`evaluate( '37 degC == 98.6 degF' ) ===> false`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.