Search the Community
Showing results for tags 'float'.
-
Without using an Editor can we round float columns to 2 decimal places ? If we have to use an Editor then I still need to round float value to 2 decimal places - Please show how to implement ? Do we use something like this and how do we apply it in code:- applyValue: function(value) { value = parseFloat(value); if (isNaN(value) || value === null) { value = this.getDefaultValue(); } //round the value to 1 decimal value = Math.round(value * 100) / 100; return this.callParent([value]); },
-
http://i66.tinypic.com/206eq39.png How to change the mask of a column in dbgrid to always remain with two decimal places? I1m using Trial edition, 1.0.0.1424 version.