Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can i replace the DOT with COMMA in a float type

Status
Not open for further replies.

lello

IS-IT--Management
Dec 13, 2002
1
US
I'm developing in UNIX C++ a batch file.

I need to know how to format the output of PRINTF function.
The function's result is a float, in the used format: with dot. I need to transform the dot in comma.

Thanks in advance for your contribution
bye
 
You should use
Code:
%f,f
or
Code:
%d,d
, I don't remember which one is correct.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top