cortex-js / compute-engine

An engine for symbolic manipulation and numeric evaluation of math formulas expressed with MathJSON
https://cortexjs.io
MIT License
357 stars 42 forks source link

parsing Decimal & rationnal dont match. #118

Closed lhotejc closed 11 months ago

lhotejc commented 12 months ago

Description

ce.parse("0.09").isEqual(ce.parse("\frac{9}{100}") return false

Steps to Reproduce

using ComputeEngine from "@cortex-js/compute-engine" in version 0.15.0 const ce = new ComputeEngine() console.log(ce.parse("0.09").isEqual(ce.parse("\frac{9}{100}")) // false

Actual Behavior

it say false.

Expected Behavior

I hope true :-)

Environment

Is this a regression: I don't know... maybe but I don't make attention to this. I ever type \frac ... before.

MathLive version
0.95.5

Operating System Linux ubuntu 23.04

Browser

Chrome 117.0