fptintf

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

    #1

    fptintf

    I want to format a float value to 999,999,999,999 .99
    format. (With commas in between and decimal point with 2
    decimals)

    Can somebody help me with this using fprintf(). I am using
    VC++ 6.0
  • David Lowndes

    #2
    Re: fptintf

    >I want to format a float value to 999,999,999,999 .99[color=blue]
    >format. (With commas in between and decimal point with 2
    >decimals)[/color]

    Use the Win32 API GetNumberFormat to convert the floating point string
    9999999999.99 to the locale format.

    Dave
    --
    MVP VC++ FAQ: http://www.mvps.org/vcfaq

    Comment

    Working...