extjs3 - how to avoid the automatic rounding of decimal value in extjs ? -
how avoid automatic rounding of decimal value in extensible java script? example if enter 2.003 rounded 2 or times if enter 2.039 accepting 2.0388888887 please me out.
for numberfields can use decimal precision config
the maximum precision display after decimal separator (defaults 2)
technically tofixed:
fixprecision : function(value) { var nan = isnan(value); if (!this.allowdecimals || this.decimalprecision == -1 || nan || !value) { return nan ? '' : value; } return parsefloat(parsefloat(value).tofixed(this.decimalprecision)); },
Comments
Post a Comment