how to get 2 digit after decimal in tfoot
how to get 2 digit after decimal in tfoot
in DataTables
how to get 2 digit after decimal in tfoot in multypale column . i am use for this footerCallback": function pageTotal = api![]


This discussion has been closed.
Answers
I'm not sure what the code snippet above is in relation to the
footerCallback. Use the Javascript toFixed() method to format the numbers. If this doesn't help then please post a link to your page or a test case replicating the issue so we can help.https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin
<tfoot>
<tr>
<th colspan="4" style="text-align:right">Total:</th>
<th></th>
</tr>
</tfoot>
where i can use .toFixed() in this please
You use
.toFixed()in Javascript. Use it in thefooterCallback. Using this example change the code that is applied to the footer to use.toFixed(). For example:Kevin
thanks a lot