.ToString("c") location

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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!
*************************************************
 
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.
 
Back
Top