Change Number formatter throught the application #7038
-
export class CustomNumberFormatter extends Serenity.NumberFormatter {
I must modify the number format throughout my application based on specific settings. For instance, formats like 1.234,56 and 234,567.89 are required, aligning with international standards where dots are used in place of decimals. However, I'm encountering difficulty achieving the desired format "1.234,56" when using "#.##0,00". Assistance in resolving this matter would be greatly appreciated. @VictorTomaili @dfaruque @volkanceylan |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 9 replies
-
I would need the same format in columns and forms, |
Beta Was this translation helpful? Give feedback.
-
I've extended please find the code used for reference: namespace DPWBooking.Default {
} |
Beta Was this translation helpful? Give feedback.
-
@VictorTomaili @dfaruque appreciate your inputs here. |
Beta Was this translation helpful? Give feedback.
-
You can use |
Beta Was this translation helpful? Give feedback.
-
@VictorTomaili Can we set a different decimal separator specifically for one or two decimal fields? If possible, could you please provide guidance on how to achieve this? |
Beta Was this translation helpful? Give feedback.
You can use
Culture.decimalSeparator
in your format. This value is changed based user culture.