could you please upgrade your package to the latest version of math.js.
Inside the new version there are some problems fixed. For example:
var b = math.fraction(0.3);
var c = math.number(b);
VM3655:131 Uncaught TypeError: Unexpected type of argument in function number (expected: number or BigNumber or Unit or string or Array or Matrix, actual: Fraction, index: 0)(…)
In the new math.js version 2.7.0 you get the expected result:
var b = math.fraction(0.3);
var c = math.number(b);
undefined
c
0.3
Hi there,
could you please upgrade your package to the latest version of math.js.
Inside the new version there are some problems fixed. For example:
In the new math.js version 2.7.0 you get the expected result:
This example code can also be found inside the documentation http://mathjs.org/docs/datatypes/fractions.html#conversion
Best regards Basti