We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a7a804 commit dd1baceCopy full SHA for dd1bace
src/Data/Show.js
@@ -8,9 +8,7 @@ exports.showIntImpl = function (n) {
8
9
exports.showNumberImpl = function (n) {
10
var str = n.toString();
11
- return str.indexOf("e") === -1 && str.indexOf(".") === -1 ?
12
- str + ".0" :
13
- str;
+ return isNaN(str + ".0") ? str : str + ".0";
14
};
15
16
exports.showCharImpl = function (c) {
0 commit comments