GlideLocale - Scoped
The GlideLocale API provides information about display information for the local instance.
There is no constructor for a GlideLocale object. Use the get() method to obtain a GlideLocale object.
GlideLocale - get()
Returns the GlideLocale object.
| Name | Type | Description |
|---|---|---|
| None |
| Type | Description |
|---|---|
| GlideLocale | The GlideLocale object. |
var locale = GlideLocale.get();
GlideLocale - getDecimalSeparator()
Returns the decimal separator.
| Name | Type | Description |
|---|---|---|
| None |
| Type | Description |
|---|---|
| String | The decimal separator. |
var locale = GlideLocale.get();
var decimalSeparator = locale.getDecimalSeparator();
gs.info( "The decimal separator is " + decimalSeparator);
Output:
The decimal separator is .
GlideLocale - getGroupingSeparator()
Returns the grouping separator.
| Name | Type | Description |
|---|---|---|
| None |
| Type | Description |
|---|---|
| String | The grouping separator. |
var locale = GlideLocale.get();var groupingSeparator = locale.getGroupingSeparator();
gs.info( "The grouping separator is " + groupingSeparator);
Output:
The grouping separator is ,