Rendering Decimal Numbers

Rendering Decimal Numbers

GargiucnGargiucn Posts: 61Questions: 15Answers: 0

I propose a discussion posted by gaspare.licari in April 2016 but it is still valid now:


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?".


This question has an accepted answers - jump to answer


  • allanallan Posts: 51,743Questions: 1Answers: 7,831 Site admin
    Answer ✓

    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?


This discussion has been closed.