473,396 Members | 1,966 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

how to format a number in relevant currencies?

Hi,

I have to display pound/ euro symbol, when i have to format a number into
respective currency? I dont want to display the default "$" sysmbol? how can
i do this?

regards,
MSK
Jan 23 '06 #1
1 1332
Mohammed,

You can create an instance of NumberFormatInfo (which implements the
IFormatProvider interface). Once you create that, you can set the
CurrencySymbol property to the symbol you wish to use.

The "$" symbol is the default for your current culture.

You can pass the instance of the NumberFormatInfo instance to the
ToString method to have it use that in determining how to create a string
representation of the value.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Mohammed Shafiulla Khadri" <md***********@hotmail.com> wrote in message
news:uB**************@TK2MSFTNGP11.phx.gbl...
Hi,

I have to display pound/ euro symbol, when i have to format a number into
respective currency? I dont want to display the default "$" sysmbol? how
can i do this?

regards,
MSK

Jan 23 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: John Brock | last post by:
I am creating an Excel workbook using VB.NET, and have run into a problem. Excel at times insists on reformatting data that I enter into cells, e.g., converting "01234" to "1234", and this screws...
1
by: ADA | last post by:
Hi all, I have a funny problem. I have a function in Windows Application, which builds dataset in run time, adds data into the dataset and returns XML. One of dataset columns has System.Double...
1
by: =?Utf-8?B?Y2Fyb2xl?= | last post by:
we have petty cash in different currencies... we used petty cash before with 3 currencies with QB - someone an idea how we could use it in the business accounting (we use microsoft accounting pro...
2
by: (PeteCresswell) | last post by:
I'm thinking ISO 4217 as shown on http://www.xe.com/iso4217.php Bond trading system. Users are definitely OK with all of a given security's trades being restricted to a single currency. ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.