format-currency
Service icon

Format Currency

Stable version 1.1.0 (Compatible with OutSystems 11)
Uploaded
 on 26 Aug (yesterday)
 by 
5.0
 (1 rating)
format-currency

Format Currency

Details
Formats the decimal based on the locale provided and currency symbol from the locale or provided. Provides a list of the Locales available. Converts a Locale Decimal String (a decimal that was written in in a certain locale) into a valid Decimal.
Read more

Provides the action GetCurrencyFormattedByLocale that formats a decimal based on the locale provided.

It also provides a list of all the Locales available for usage with GetLocales.

Provides the action GetDecimalFromLocaleDecimalString converts a Locale Decimal String (a decimal that was written in in a certain locale) into a valid Decimal.  

It takes advantage of C#'s System.Globalization namespace and the CultureInfo and NumberFormatInfo classes.

Release notes (1.1.0)

Fixed

- Added `CurrencyNegativePattern` 16 (`$- n`) to the negative-pattern lookup table, fixing locales that use this pattern on .NET ICU runtimes (e.g. `luy-KE`).

- Added bounds-check safety guards on `NegativePatterns` and `PositivePatterns` array indexing for forward compatibility with future .NET pattern values.

- O11: `IsValidDecimal` now correctly set to `false` on error paths (XIF original left it as `true` even on parsing failure).

- O11: Null-safety added for the `currency` parameter in `GetCurrencyFormattedByLocale` and `GetDecimalFromLocaleDecimalString`.

- O11: Chinese decimal path now uses `CultureInfo.InvariantCulture` for consistent `ToString()` output.

- XIF source synced with all fixes above; target framework updated from v4.6.1 to v4.8.



License (1.1.0)
Reviews (0)
Team
Other assets in this category