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

  • Home
  • SEARCH
  • 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 have a client in the healthcare space, that might need an IVR system
learning Jquery and integrating with PHP - getting there, but have one last challenge
I'm looking at integrating a wizard in an existing Spring 3 MVC+JPA+Jquery+JSP application. I
I'm wondering if there are any recommendations, best practises or top-tips for integrating a
So we have Redmine successfully integrated with SVN. It's a mature integration (a few
1) when i am downloading the file from net my frameworks are getting in
If I define a new ref class in C++/CLI, can I then use this
Does the model binder not suport arrays of JSON objects? The code below works
What is the difference during the integration phase of running grails tests via grails
I'm setting up Hudson as an integration server that I expect other developers and

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.