Format data from the database
Format data from the database
Hello,
I am looking for a while for a solution of my problem.
How can I format data that are extracted from the database?
Such as number format (I have now this kind of numbers 0.101515112219147725, I want 0.10)
Please help me out.
Regards,
K
I am looking for a while for a solution of my problem.
How can I format data that are extracted from the database?
Such as number format (I have now this kind of numbers 0.101515112219147725, I want 0.10)
Please help me out.
Regards,
K
This discussion has been closed.
Replies
[code]
"mRender": function ( data, type, full ) {
return data.toFixed(2); //Rounds and keeps only 2 places after the decimal
}
[/code]
Regards,
Komserbey