Rendering Decimal Numbers

Rendering Decimal Numbers

GargiucnGargiucn Posts: 104Questions: 29Answers: 0

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

Answers

  • allanallan Posts: 61,650Questions: 1Answers: 10,094 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?

    Thanks,
    Allan

This discussion has been closed.