Javascript Number ToMoney()

Description

Javascript Number ToMoney()

Number.prototype.ToMoney = function () {
    var val = this == "" || this == null ? parseFloat(0) : this;
    val = val.toFixed(2);//from www .ja va  2  s .  c  o m
    val = val.replace(".", ",");
    return val;
};
//# sourceMappingURL=Number.js.map



PreviousNext

Related