Get User’s Currency Symbol

Function that returns the UNICODE currency symbol of the user’s current location. In most cases the output is one character long, but for countries without a special symbol for the currency the output can be longer (e.g.: Norwegian kroner (kr).

Note

If you want to obtain the location of the user, the recomended function is getCountryCode available inside onInit context.

Syntax

To obtain the currency symbol of the user and store it in a variable use:

var currencySymbol = ctx.getCurrencySymbol();

Warning

This function only works inside a onResult context.

Just like any location-based function this can be tricked by using a VPN but that should be considered the user’s problem and needs not be taken into account when making a calculator.