473,387 Members | 1,834 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,387 software developers and data experts.

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
Nov 16 '05 #1
1 996
>I want to format a float value to 999,999,999,999.99
format. (With commas in between and decimal point with 2
decimals)


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
Nov 16 '05 #2

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

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.