Intro
With a recent change in UI5 version 1.130, we corrected the formatting of decimal places for currencies.
We now differentiate between two cases:
Case 1: If the style: “long”/”short” format option is not set, and no decimals are provided in the oFormatOptions of the sap.ui.core.format.NumberFormat.getCurrencyInstance API (either via the direct format option decimals or via currency customizing as specified by the format option customCurrencies), the given value is formatted with the decimals value defined by the CLDR standard.
Case 2: If the style: “long”/”short” format option is set, only the decimals explicitly set in the oFormatOptions of the sap.ui.core.format.NumberFormat.getCurrencyInstance API, are considered for the determination of the number of decimal places in the output.
Any other source for the decimals attribute (i.e. your currency customizing or the CLDR) is not considered anymore.
IntroWith a recent change in UI5 version 1.130, we corrected the formatting of decimal places for currencies.We now differentiate between two cases:Case 1: If the style: “long”/”short” format option is not set, and no decimals are provided in the oFormatOptions of the sap.ui.core.format.NumberFormat.getCurrencyInstance API (either via the direct format option decimals or via currency customizing as specified by the format option customCurrencies), the given value is formatted with the decimals value defined by the CLDR standard.Case 2: If the style: “long”/”short” format option is set, only the decimals explicitly set in the oFormatOptions of the sap.ui.core.format.NumberFormat.getCurrencyInstance API, are considered for the determination of the number of decimal places in the output.Any other source for the decimals attribute (i.e. your currency customizing or the CLDR) is not considered anymore. Read More Technology Blogs by SAP articles
#SAP
#SAPTechnologyblog