Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- xtype: 'numberfield',
- allowDecimals: true,
- decimalPrecision: 3,
- labelWidth: 30,
- labelPadding: 2,
- labelAlign: 'left',
- },
- setValue: function(value, supress) {
- var val
- value = val
- var valTo = parseInt(val * Math.pow(10,3))/(Math.pow(10,3));
- number.setValue(valTo);
- },
- Now this is displaying the exact three decimal number. But when I change it and send it back I want this to be all seven digit.
- Is there any way by which I can show only three digit after decimal but send all the seven digit decimal number.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement