Format results
This commit is contained in:
parent
dcf99e1c99
commit
ebd518de9f
1 changed files with 1 additions and 1 deletions
|
|
@ -173,7 +173,7 @@ function Calculator(str) {
|
||||||
|
|
||||||
|
|
||||||
if ((a || a == "0") && !op && !b) {
|
if ((a || a == "0") && !op && !b) {
|
||||||
return a;
|
return formatResult(a);
|
||||||
}
|
}
|
||||||
if (isNaN(a) || isNaN(b)) {
|
if (isNaN(a) || isNaN(b)) {
|
||||||
return NaN;
|
return NaN;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue