Commit 8a22ebe1 by chenwq

千分位

1 parent 22e6c17c
......@@ -14,7 +14,7 @@ var setPrice = function (n = 0.0) {
}
var threeNumForTwo = {
money_three_for_two_thousands: function (num) {
money_three_for_two_thousands: function (num, isInt = true) {
//num = parseInt(num);
// return num
var num = num + ''
......@@ -42,7 +42,7 @@ var threeNumForTwo = {
result = num + result
}
// return result
return d + (result + num2)
return isInt ? d + result : d + (result + num2)
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!