mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-04-24 17:48:41 +02:00
@@ -69,8 +69,7 @@
|
|||||||
then call math.evaluate(expr)
|
then call math.evaluate(expr)
|
||||||
if result exists and result is a Number
|
if result exists and result is a Number
|
||||||
js(result)
|
js(result)
|
||||||
return result.toString().replace(new RegExp(',|\\.', 'g'),
|
return result.toLocaleString(undefined, {minimumFractionDigits: 0, maximumFractionDigits: 40})
|
||||||
match => match === '.' ? window.decimalSeparator : window.argSeparator)
|
|
||||||
end
|
end
|
||||||
then set localizedResult to it
|
then set localizedResult to it
|
||||||
set #calculator-result.innerText to localizedResult
|
set #calculator-result.innerText to localizedResult
|
||||||
|
|||||||
Reference in New Issue
Block a user