---
sourceDocument: Xanadu API Reference
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/api-reference

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# GlideLocale - Scoped

# GlideLocale - Scoped {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

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() {#ariaid-title2}

Returns the GlideLocale object.
{#r_ScopedGlideLocaleGet__table_qxl_hft_sr__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 1. Parameters]

{#r_ScopedGlideLocaleGet__table_qxl_hft_sr} {#r_ScopedGlideLocaleGet__table_rxl_hft_sr__entry__2}

| Type | Description |
|-|-|
| GlideLocale | The GlideLocale object. |
[Table 2. Returns]

{#r_ScopedGlideLocaleGet__table_rxl_hft_sr}  

    var locale = GlideLocale.get();

## GlideLocale - getDecimalSeparator() {#ariaid-title3}

Returns the decimal separator.
{#r_SGL-GetDecimalSeparator__table_snb_3gt_sr__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 3. Parameters]

{#r_SGL-GetDecimalSeparator__table_snb_3gt_sr} {#r_SGL-GetDecimalSeparator__table_tnb_3gt_sr__entry__2}

| Type | Description |
|-|-|
| String | The decimal separator. |
[Table 4. Returns]

{#r_SGL-GetDecimalSeparator__table_tnb_3gt_sr}  

    var locale = GlideLocale.get();
    var decimalSeparator = locale.getDecimalSeparator();
    gs.info( "The decimal separator is " + decimalSeparator);

Output:

    The decimal separator is .

## GlideLocale - getGroupingSeparator() {#ariaid-title4}

Returns the grouping separator.
{#r_SGL-GetGroupingSeparator__table_jtf_5ft_sr__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 5. Parameters]

{#r_SGL-GetGroupingSeparator__table_jtf_5ft_sr} {#r_SGL-GetGroupingSeparator__table_ktf_5ft_sr__entry__2}

| Type | Description |
|-|-|
| String | The grouping separator. |
[Table 6. Returns]

{#r_SGL-GetGroupingSeparator__table_ktf_5ft_sr}  

    var locale = GlideLocale.get();var groupingSeparator = locale.getGroupingSeparator();
    gs.info( "The grouping separator is " + groupingSeparator);

Output:

    The grouping separator is ,


