Closed truebluepl closed 4 months ago
Negative mixed fractions parsing is faulty.
const ce = new ComputeEngine.ComputeEngine(); let a = ce.parse('-1\\frac{2}{3}'); console.log(a.value);
Returns -0.3333333333333333, which means value is parsed as -1+2/3, not as -1-(2/3)
Should returns -1.6666666666666667
Description
Negative mixed fractions parsing is faulty.
Steps to Reproduce
Actual Behavior
Returns -0.3333333333333333, which means value is parsed as -1+2/3, not as -1-(2/3)
Expected Behavior
Should returns -1.6666666666666667