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

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -