GlideLocale

A list of all the field attributes that could be found here on the docs.

Jace Benson

Table of content
  1. Methods available
  2. Detail
  3. getDecimalSeparator
  4. getGroupingSeparator

GlideLocale provides the decimal and grouping separators used by the instance locale. Use these when presenting numbers in the locale’s display format.

Docs

Methods available

Method Description
getDecimalSeparator Returns the decimal separator for the current locale
getGroupingSeparator Returns the grouping (thousands) separator

Detail

getDecimalSeparator

Returns the character used as the decimal separator in the current locale. Typically . in en-US, , in many European locales.

var locale = GlideLocale.get();
gs.info(locale.getDecimalSeparator()); // "."

getGroupingSeparator

Returns the character used as the grouping (thousands) separator. Typically , in en-US, . in many European locales.

var locale = GlideLocale.get();
gs.info(locale.getGroupingSeparator()); // ","

For the current user’s date format, see GlideSystem.getDateFormat.