FormatCurrency or equiv

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andrea Williams

    FormatCurrency or equiv

    Anyone have code that will format a decimal value to a string currency
    format for display? Something like FormatCurrency( ) in VBscript had?

    I usually search thecodeproject. com first, but something's wrong b/c I can't
    get to the articles where there might be an answer.

    Thanks in advance,
    Andrea


  • Sherif ElMetainy

    #2
    Re: FormatCurrency or equiv

    Hello

    decimal c = 10;
    Console.WriteLi ne(c.ToString(" C"));

    Best regards,
    Sherif

    "Andrea Williams" <andreawil@hotm ail.IHATESpam.c om> wrote in message
    news:#jiuY7#UEH A.712@TK2MSFTNG P11.phx.gbl...[color=blue]
    > Anyone have code that will format a decimal value to a string currency
    > format for display? Something like FormatCurrency( ) in VBscript had?
    >
    > I usually search thecodeproject. com first, but something's wrong b/c I[/color]
    can't[color=blue]
    > get to the articles where there might be an answer.
    >
    > Thanks in advance,
    > Andrea
    >
    >[/color]


    Comment

    • Andrea Williams

      #3
      Re: FormatCurrency or equiv

      I was going to write that I found it but you beat me to it.

      THANKS!

      Andrea

      "Sherif ElMetainy" <elmeteny.NOSPA M@wayout.net.NO SPAM> wrote in message
      news:uV3PSO$UEH A.4064@TK2MSFTN GP11.phx.gbl...[color=blue]
      > Hello
      >
      > decimal c = 10;
      > Console.WriteLi ne(c.ToString(" C"));
      >
      > Best regards,
      > Sherif
      >
      > "Andrea Williams" <andreawil@hotm ail.IHATESpam.c om> wrote in message
      > news:#jiuY7#UEH A.712@TK2MSFTNG P11.phx.gbl...[color=green]
      > > Anyone have code that will format a decimal value to a string currency
      > > format for display? Something like FormatCurrency( ) in VBscript had?
      > >
      > > I usually search thecodeproject. com first, but something's wrong b/c I[/color]
      > can't[color=green]
      > > get to the articles where there might be an answer.
      > >
      > > Thanks in advance,
      > > Andrea
      > >
      > >[/color]
      >
      >[/color]


      Comment

      Working...