Posted 1 July 2024, 11:17 am EST
Hello,
We have been looking to utilise wijmo inputnumber for one of our grids.
We want to allow input of & display 3 decimal places. We’ve achived this using n3 format. However, when loading the saved response from the database - the value is getting rounded up. I.e, 87.378 would display as 87.380. I have attempted to attach a visual example of this, however the uploader does not seem to be working.
This is reproducible within the documentation. https://developer.mescius.com/wijmo/demos/Input/InputNumber/Overview/angular - if you change ‘theValue’ on line 17 of app.component.ts to 87.378 (or similar 3 d.p number), and change line 7 of app.component.html to include [format]=“‘n3’” and rerun you can see the incorrect value displaying in the box.
Is this intentional behaviour? It feels like an oversight to allow for nX formats but to not properly display them. If it is intentional, are there any workarounds/potential fixes?
Thanks