This is the documentation for the development version. There are no official binaries for it; build it from the source code in git. Download links on these pages work only after the release. For the current release, see version 7.0.

CurrencyExponent

CurrencyExponent(code): int

Get currency exponent

Table 1. Parameters

code

String

Currency numeric or character code as a String

Return

Currency exponent, or 0 if currency not found.

println(CurrencyExponent("EUR")); // Will print 2
println(CurrencyExponent("978")); //Will print 2