Javascript Number toDecimalString()

Description

Javascript Number toDecimalString()


Number.prototype.toDecimalString = function() {
  return this.toString().contains('.') ? this.toString() : this + '.0';
}



PreviousNext

Related