Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8178615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T23:48:37+00:00 2026-06-06T23:48:37+00:00

When exporting some data to an Excel workbook I am setting a custom number

  • 0

When exporting some data to an Excel workbook I am setting a custom number format for certain fields.

The problem is that the actual format string depends on the locale, for example “0.00” for English and “0,00” for Slovenian.

Is there any way to read the decimal delimiter from regional settings?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T23:48:38+00:00Added an answer on June 6, 2026 at 11:48 pm
    public static str currencyDecimalSeparator()
    {
        System.Threading.Thread               t = System.Threading.Thread::get_CurrentThread();
        System.Globalization.CultureInfo      ci = t.get_CurrentCulture();
        System.Globalization.NumberFormatInfo ni;
        str                                   delimiter;
    
        ci.ClearCachedData();
        ni = ci.get_NumberFormat();
    
        delimiter = ni.get_CurrencyDecimalSeparator();
    
        return delimiter;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am exporting gridview data to excel but that excel file add the some
So I have some Spanish content saved in Excel, that I am exporting into
When exporting some data from MS SQL Server using Python, I found out that
I'm having a strange problem with SSIS. I'm exporting some data from a database
I'm exporting some data I have in a database into Excel. Although the below
I'm setting up some html exporting to excel and is doing this via jquery
In ASP.NET, I am exporting some data to Excel by simply binding a DataSet
We're exporting some data from a website app into an Excel spreadsheet, however, when
Basically, the user will be exporting some data to a txt file. That txt
Exporting some data from mysql to a csv file using FasterCSV. I'd like the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.