on master help sign in
Debugger: numbers use max 2 decimal places.
commit4279277595ed779217dcd327a1da5c4042e06c7b authorLaszlo Pandy <laszlo.pandy@prezi.com> dateThu 7 Nov 2013, 09:42 (13 years ago) parentf4987ae
1 file changed+1−1
libraries/Native/Show.js+1−1
libraries/Native/Show.js+1−1
@@ -20,7 +20,7 @@ Elm.Native.Show.make = function(elm) {
2020 } else if (type === "boolean") {
2121 return v ? "True" : "False";
2222 } else if (type === "number") {
23− return v+"";
23+ return v.toFixed(2).replace(/\.0+$/g, '');
2424 } else if ((v instanceof String) && v.isChar) {
2525 return "'" + addSlashes(v) + "'";
2626 } else if (type === "string") {