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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

what should i put behind % if the datatype is double?

Status
Not open for further replies.

kaya17

Programmer
Feb 9, 2004
78
SG
i know if integer, it is %d,
how about double?

 
f

Ion Filipski
1c.bmp
 
e, E, f, g or G

Look up "printf Type Field Characters" in the help. The older compilers want a float, the newer ones expect a double and will automatically cast from float to double.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top