Rendering Decimal Numbers
Rendering Decimal Numbers
gaspare.licari
Posts: 10Questions: 3Answers: 0
Using Editing DataTable, the numeric values with decimals are always displayed with decimal part as zero, even if the values is stored correctly into the Database.
For example if I edit 1.52, it's displayed as 1.00 and stored into Database as 1.52.
In DataTable configuration I use the following statement:
{ data: "IMPORTO", render: $.fn.dataTable.render.number(',', '.', 2, '$;'), className: 'editable' }
How can I fix it?
Thanks
This discussion has been closed.