🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #51058

print double as float?

#51058
From: Alex Lopez-Ortiz
Date: Fri, 25 Jun 1993 18:18
17 lines
1003 bytes
Is it wrong or not to print a double as a float as in:

printf("%f \n", log(3.0));

?

Thanks

Alex



-- 
Alex Lopez-Ortiz                              alopez-o@maytag.UWaterloo.ca
Department of Computer Science                      University of Waterloo
Waterloo, Ontario                                                   Canada
Technical Details
Message-ID: <C96w6o.GGw@undergrad.math.uwaterloo.ca>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!math.ohio-state.edu!cs.utexas.edu!utnut!torn!watserv2.uwaterloo.ca!watmath!undergrad.math.uwaterloo.ca!neumann.uwaterloo.ca!alopez-o

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,47f00a2af5fef595,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-06-25 12:06:07 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!math.ohio-state.edu!cs.utexas.edu!utnut!torn!watserv2.uwaterloo.ca!watmath!undergrad.math.uwaterloo.ca!neumann.uwaterloo.ca!alopez-o
From: alopez-o@neumann.uwaterloo.ca (Alex Lopez-Ortiz)
Subject: print double as float?
Message-ID: <C96w6o.GGw@undergrad.math.uwaterloo.ca>
Sender: news@undergrad.math.uwaterloo.ca
Organization: University of Waterloo
Date: Fri, 25 Jun 1993 18:18:24 GMT
Lines: 17