Rendering Decimal Numbers

Rendering Decimal Numbers

GargiucnGargiucn Posts: 25Questions: 8Answers: 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

Answers

  • allanallan Posts: 48,454Questions: 1Answers: 7,015 Site admin

    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

Sign In or Register to comment.