format options for numeric data

Questionsformat options for numeric data
Massimo Gagliardi asked 6 years ago

With this definition:
$col["formatter"] = "number";
$col["formatoptions"] = array("thousandsSeparator" => ",",
"decimalSeparator" => ".",
"decimalPlaces" => '2');
you can view:
999,999,999.99

With this definition (italian country):
$col["formatter"] = "number";
$col["formatoptions"] = array("thousandsSeparator" => ".",
"decimalSeparator" => ",",
"decimalPlaces" => '2');
you can view:
999.999.999..99
Thanks in advance for suggestions

2 Answers
Abu Ghufran answered 6 years ago

Use "decimalPlaces" => 2; without quote ('')

Massimo Gagliardi answered 6 years ago

Thank you
But in the documentation there are the quote.

Your Answer

4 + 10 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?