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.
2 parents edde446 + ac98eff commit b1c0113Copy full SHA for b1c0113
src/Data/Show.js
@@ -7,8 +7,10 @@ exports.showIntImpl = function (n) {
7
};
8
9
exports.showNumberImpl = function (n) {
10
- /* jshint bitwise: false */
11
- return n === (n | 0) ? n + ".0" : n.toString();
+ var str = n.toString();
+ return str.indexOf("e") === -1 && str.indexOf(".") === -1 ?
12
+ str + ".0" :
13
+ str;
14
15
16
exports.showCharImpl = function (c) {
0 commit comments