How to convert value into euro currency with C#

1 Answer

0 votes
using System;
using System.Globalization;

class Program
{
    static void Main() {
        var amount = 31500;
        
        string euro = amount.ToString("C", new CultureInfo("en-GB"));

        Console.WriteLine(euro);

    }
}




/*
run:

£31,500.00

*/

 



answered May 1, 2022 by avibootz

Related questions

1 answer 199 views
1 answer 163 views
1 answer 131 views
131 views asked Oct 2, 2023 by avibootz
3 answers 378 views
2 answers 246 views
3 answers 287 views
...