How to format number value in datatable for Euler's number E/e
How to format number value in datatable for Euler's number E/e
sarooptrivedi
Posts: 62Questions: 19Answers: 2
in Plug-ins
I have 62900000000 value and I want to display in datatable column as 6.29E+010.
I did not found any specific format for number formatting in datatable specific for Euler's number
This question has an accepted answers - jump to answer
Answers
You can use
columns.render
to create your own custom number renderer.Kevin
I found it with proper formula. Column rendering
render: function (num) {
if (num!=null) {
return Number.parseFloat(num).toExponential(2);
}
}
}