Skip to content

"123 fahrenheit" -> TypeError: Cannot implicitly convert a number with >15 significant digits to BigNumber #3450

@keras

Description

@keras

The issues section is used only for bug reports. Please use the Discussions section to ask questions and share ideas and suggestions.

Describe the bug
evaluate("123 fahrenheit") using BigNumbers results an error:

TypeError: Cannot implicitly convert a number with >15 significant digits to BigNumber

I'm using mathjs v14.4.0

I see this might be similar to #1269 which resulted in a bug fix.

To Reproduce

mathjs.create(mathjs.all, {number: 'BigNumber', precision: 64})
  .evaluate("123 fahrenheit")

Uncaught TypeError: Cannot implicitly convert a number with >15 significant digits to BigNumber (value: 0.5555555555555556). Use function bignumber(x) to convert to BigNumber.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions