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

sarooptrivedisarooptrivedi Posts: 41Questions: 12Answers: 2

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

  • kthorngrenkthorngren Posts: 16,799Questions: 25Answers: 3,982
    Answer ✓

    You can use columns.render to create your own custom number renderer.

    Kevin

  • sarooptrivedisarooptrivedi Posts: 41Questions: 12Answers: 2
    edited March 31

    I found it with proper formula. Column rendering
    render: function (num) {
    if (num!=null) {
    return Number.parseFloat(num).toExponential(2);
    }
    }
    }

Sign In or Register to comment.