Posted 2 August 2024, 2:55 pm EST
Hi Team,
Decimal number resets to 0 after precision is more than 2 precision, For example: 45.67654 will look like 45.00000 or 754.89765 as 754.00000,
we are using below code
public override set value(value: number) {
if (value != this._value) {
try {
value = wjcCore.asNumber(
value,
!this.isRequired || (value == null && this._value == null)
);
} catch (e) {}
value = _.toNumber(value);
value = _.isNaN(value) ? 0 : value;
if (value == null) {
this._setText('');
} else if (!isNaN(value)) {
let text = wjcCore.Globalize.format(value, this.format);
this._setText(text);
}
}
}
Please resolve the issue.