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 3968942
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T03:54:14+00:00 2026-05-20T03:54:14+00:00

I am integrating with a database which returns currencies ( System.Decimal ) and currency

  • 0

I am integrating with a database which returns currencies (System.Decimal) and currency codes. The currency codes are strings like "USD", "GBP", and even "FRF".

Is there something built-in to mscorlib which can help me format these currencies? I first thought about setting up a mapping between database currency code and CultureInfo, but I don’t know what to do about FRF because if I use "fr-FR", it would format as euros instead of francs.

The full list of currency symbols we must support is:

FRF
CHF
NZD
IN2
SAR
SEK
EUR
MXP
DKK
GBP
AUD
IN1
AED
CAD
NOK
INR
USD
PLN
  • 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-05-20T03:54:15+00:00Added an answer on May 20, 2026 at 3:54 am

    You can replace the default currency and still make use of the framework…

    using System;
    using System.Globalization;
    using System.Threading;
    public class EuroLocalSample
    {
       public static void Main()
       { 
         // Create a CultureInfo object for French in France.
         CultureInfo FrCulture = new CultureInfo("fr-FR");
         // Set the CurrentCulture to fr-FR.
         Thread.CurrentThread.CurrentCulture = FrCulture;
        // Clone the NumberFormatInfo object and create
        // a new object for the local currency of France.
        NumberFormatInfo LocalFormat =
        (NumberFormatInfo)NumberFormatInfo.CurrentInfo.Clone();
        // Replace the default currency symbol with the local
        // currency symbol.
        LocalFormat.CurrencySymbol = "F";
    
        int i = 100;
    
        // Display i formatted as the local currency.
        Console.WriteLine(i.ToString("c", LocalFormat));
        // Display i formatted as the default currency.
        Console.WriteLine(i.ToString("c", NumberFormatInfo.CurrentInfo));
       }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm integrating with an existing database, so I would like the tables generated by
I am currently integrating lua with C++. For lua I need static methods which
I have a table in a MySQL Database which has this structure: CREATE TABLE
I am integrating facebook connect with my application which uses authlogic, facebooker, and the
I've currently got a tool which allows me to configure a database connection (using
I am working with Integration of multiple applications which is using their own databases.
In short I am writing a class handler to handle to database integration of
I have a small Java file interacting with a postgresql database, so I've downloaded
I am integrating the MailChimp API into my app and am using a UserObserver
I am integrating a WordPress template. But my category list is repeating again. This

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.