Need a special offer?Find out if your project fits.
+

Format total

Answered
Valerio Precht asked on August 15, 2019

Good afternoon
I am evaluating FlexMonster and would like to know how to format the decimal in totals by default.
Thank you
Valerio

2 answers

Public
Vera Didenko Vera Didenko Flexmonster August 16, 2019

Hello, Valerio,
 
 
Thank you for writing to us.
 
 
Default report configurations, such as decimal formatting, can be defined in the report object.
 
For example, you can specify the desired decimal separator, the number of decimals to show after the decimal separator, and the maximum number of decimals to show after the decimal separator via the decimalSeparator, decimalPlaces, maxDecimalPlaces parameters accordingly:

formats: [
{
name: "",
decimalSeparator: ".",
decimalPlaces: 2,
maxDecimalPlaces: 2
}
]

Here is a JSFiddle example for illustration.
 
Please see our Number Formatting tutorial for reference.
 
 
Hope this helps.
 
 
Best Regards,
Vera

Public
Valerio Precht August 16, 2019

Thanks for the reply Vera.
It was right.
Greetings.

Please login or Register to Submit Answer