.ToString("c") location

G

Guest

Hi

When you have something like this:

decimal d = 17.4m;
Response.Write(d.ToString("c"));

The output becomes: 17,50 kr. If the culture is set to swedish.

So my question is. Where in the framework is the class/function that does
the rounding for each and every currency?

Thanks
 
C

Cowboy \(Gregory A. Beamer\)

I would also consider downloading Reflector (Lutz Roeder's tool) and looking
at sysglobl.dll from the framework if you want to get even more information
about the inner workings.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think outside of the box!
*************************************************
 
G

Guest

Thanks Gregory. Have now been looking thru all of sysglobl.dll but can find
any actually code that shows how they are doing the currency rounding. Any
tips.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top