fix(calculator): rounding errors

This commit is contained in:
Herculino Trotta
2025-01-07 16:16:26 -03:00
parent 6e3fdae4fe
commit f81f1d83fd
2 changed files with 9 additions and 4 deletions

View File

@@ -66,7 +66,7 @@
})
end
then set expr to it
then call math.evaluate(expr)
then call math.evaluate(expr).toNumber()
if result exists and result is a Number
js(result)
return result.toLocaleString(undefined, {minimumFractionDigits: 0, maximumFractionDigits: 40})