# Sys.localeconv Function in R (Example) | Numerical & Monetary Representations in Locale

This tutorial demonstrates how to find details about the numerical and monetary representations in the current locale **using the Sys.localeconv function** in the R programming language.

The tutorial contains this information:

Let’s dive into it:

## Example: Get Details of Numerical & Monetary Representations in Current Locale Using Sys.localeconv() Function

This example explains how to apply the Sys.localeconv function to return details about the numerical and monetary representations of the currently used locale.

Consider the following R code and its RStudio console output:

Sys.localeconv() # Apply Sys.localeconv function # decimal_point thousands_sep grouping int_curr_symbol # "." "" "" "EUR" # currency_symbol mon_decimal_point mon_thousands_sep mon_grouping # "€" "," "." "\003" # positive_sign negative_sign int_frac_digits frac_digits # "" "-" "2" "2" # p_cs_precedes p_sep_by_space n_cs_precedes n_sep_by_space # "0" "1" "0" "1" # p_sign_posn n_sign_posn # "1" "1" |

Sys.localeconv() # Apply Sys.localeconv function # decimal_point thousands_sep grouping int_curr_symbol # "." "" "" "EUR" # currency_symbol mon_decimal_point mon_thousands_sep mon_grouping # "€" "," "." "\003" # positive_sign negative_sign int_frac_digits frac_digits # "" "-" "2" "2" # p_cs_precedes p_sep_by_space n_cs_precedes n_sep_by_space # "0" "1" "0" "1" # p_sign_posn n_sign_posn # "1" "1"

As you can see, the previous R syntax has returned locale information such as the decimal point, the thousands separator, and the currency symbol.

## Video & Further Resources

I have recently released a video on the Statistics Globe YouTube channel, which shows the contents of this tutorial. Please find the video below.

*The YouTube video will be added soon.*

Besides the video, you may want to read the other articles on my website. Some other tutorials can be found below.

- Sys.getlocale & Sys.setlocale Functions in R
- How to Get Environment Variables
- Sys.getpid Function in R
- System Calls & Commands
- R Functions List
- Introduction to R

At this point you should know how to **apply the Sys.localeconv function** in the R programming language. Let me know in the comments, if you have additional questions.

### Statistics Globe Newsletter