in C# I would like to display Currency in Mozambique’s Metical format

Asked

Viewed 22 times

0

hello, in C#,

I have my fields displaying in BRL currency format in Real symbol >R$12.00 would like to display in Metical 12.00MT symbol format.

someone can help me in this exhibition?

I’ll have to change the bank? OK utf-8

thank you,

  • 2

    without seeing the code I would say to use the string.Format for example

  • The String.Format would be to format as Real 'R$' and I did so to display in Real. 'txtValorTotal.Text = String.Format("{0:C2}", total); this returns me R$:12,00. And to display in Grid I do so: grid.Columns[1]. Headertext = "Status"; //format column coin grid.Columns[1].DefaultCellStyle.Format = "C2"; How do I display 12.00MT or 1500.50mt? Grateful for the attention.

  • if it appears R$ is pq the machine culture is in en-BR, it would need to change, but I went to check and there is a code for Mozambique unfortunately: https://docs.microsoft.com/en-us/dotnet/api/system.globalization.regioninfo.isocurrencysymbol?view=net-5.0 you will need to do this manual :(

  • thank you very much, I will analyze the link,

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.