Rendering Decimal Numbers
Rendering Decimal Numbers
Gargiucn
Posts: 109Questions: 30Answers: 0
in DataTables
I propose a discussion posted by gaspare.licari in April 2016 but it is still valid now:
"Using:
render: $.fn.dataTable.render.number( ',', '.', 2, '€ ' )
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.
How can I fix it?".
Thanks,
Giuseppe
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Hi Giuseppe,
What version of DataTables are you using please? Also, can you give me a link to the page you are working on that shows this error so I can debug it please?
Thanks,
Allan