This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function clear_decimal_point(value) { | |
// 3.20 -> 3.2, 3.00 -> 3 | |
var s = value.split("."); | |
if (s.length == 1) { | |
return value; | |
} | |
var zeroCount = 0; | |
for (i = 0; i < s[1].length; i++) { | |
if (s[1].substring(s[1].length - (i + 1), s[1].length - i) == "0") { |
OlderNewer