Skip to content

Fractions with big powers return wrong result #162

@truebluepl

Description

@truebluepl

Description

Fraction \frac{27^{12}}{9^{19}} returns wrong value.

Actual Behavior

Fraction value is 0.11111111111111113 as value compiled to JavaScript.
Should be 0.11111111111111111 (which is 1/9).

If I try check equality via isEqual between 1/9 and \frac{27^{12}}{9^{19}} I get error:
compute-engine.min.js:51 Error: [DecimalError] Invalid argument: 7504731764849957,67542585883649600

Expected Behavior

Value compiled to JS should be proper or there should be availability to check equality.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions