src/sap.ui.core/src/sap/ui/core/LocaleData.js
function(sCurrency) {

			// try to lookup currency digits from custom currencies
			var mCustomCurrencies = this._get("currency");
			if (mCustomCurrencies) {
				if (mCustomCurrencies[sCurrency] && mCustomCurrencies[sCurrency].hasOwnProperty("digits")) {
					return mCustomCurrencies[sCurrency].digits;
				} else if (mCustomCurrencies["DEFAULT"] && mCustomCurrencies["DEFAULT"].hasOwnProperty("digits")) {
					return mCustomCurrencies["DEFAULT"].digits;
				}
			}

			var iDigits = this._get("currencyDigits", sCurrency);
			if (iDigits == null) {
				iDigits = this._get("currencyDigits", "DEFAULT");

				if (iDigits == null) {
					iDigits = 2; // default
				}
			}
			return iDigits;
		}
function(sCurrency) {

			// try to lookup currency digits from custom currencies
			var mCustomCurrencies = this._get("currency");
			if (mCustomCurrencies) {
				if (mCustomCurrencies[sCurrency] && mCustomCurrencies[sCurrency].hasOwnProperty("digits")) {
					return mCustomCurrencies[sCurrency].digits;
				} else if (mCustomCurrencies["DEFAULT"] && mCustomCurrencies["DEFAULT"].hasOwnProperty("digits")) {
					return mCustomCurrencies["DEFAULT"].digits;
				}
			}

			var iDigits = this._get("currencyDigits", sCurrency);
			if (iDigits == null) {
				iDigits = this._get("currencyDigits", "DEFAULT");

				if (iDigits == null) {
					iDigits = 2; // default
				}
			}
			return iDigits;
		}
function ( sCurrency ) { // try to lookup currency digits from custom currencies var mCustomCurrencies = this . _get ( "currency" ) ; if ( mCustomCurrencies ) { if ( mCustomCurrencies [ sCurrency ] && mCustomCurrencies [ sCurrency ] . hasOwnProperty ( "digits" ) ) { return mCustomCurrencies [ sCurrency ] . digits ; } else if ( mCustomCurrencies [ "DEFAULT" ] && mCustomCurrencies [ "DEFAULT" ] . hasOwnProperty ( "digits" ) ) { return mCustomCurrencies [ "DEFAULT" ] . digits ; } } var iDigits = this . _get ( "currencyDigits" , sCurrency ) ; if ( iDigits == null ) { iDigits = this . _get ( "currencyDigits" , "DEFAULT" ) ; if ( iDigits == null ) { iDigits = 2 ; // default } } return iDigits ; }
Returns the number of digits of the specified currency.

@param {string} sCurrency ISO 4217 currency code
@returns {int} digits of the currency
@public
@since 1.21.1
Returns the number of digits of the specified currency .