Skip to content

Modern String MoneyLocaleName

Paul Squires edited this page Nov 9, 2026 · 5 revisions

Home › String Library › String Library › MoneyLocaleName

MoneyLocaleName

Returns the name of the locale that money is formatted for.

Syntax

MoneyLocaleName( ) as ustring

Notes

  • Windows reports an NLS name such as en-CA. Linux and macOS report whatever setlocale returned for LC_MONETARY.
  • Empty, or a C-locale name, when the system rejected the locale. Check MoneyLocaleIsValid rather than reading anything into the name.
  • Reads the snapshot, loading it on first use.

Examples

print "money formatted as "; MoneyLocaleName( )

Library: String Library
Category: String Library
Documented under: Money Formatting

Clone this wiki locally