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: 45Questions: 15Answers: 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: 20,425Questions: 26Answers: 4,794
    Answer ✓

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

    Kevin

  • sarooptrivedisarooptrivedi Posts: 45Questions: 15Answers: 2
    edited March 2022

    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.