That is certainly a thought. It should promote I guess. But I'd be more 
comfortable with a native format code. I figured maybe 'hg' by analogy to 'hd' 
and so forth, but the manual says nothing about h with g.

Charles


-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Paul Gilmartin
Sent: Monday, March 13, 2017 4:03 PM
To: [email protected]
Subject: Re: C fprintf() format code for 32-bit float?

On Mon, 13 Mar 2017 15:53:20 -0700, Charles Mills wrote:

>Apologies for the basic question. About everything I know about 
>floating point could be engraved on the back of a postage stamp.
>
>For C fprintf() and friends, how do I specify the formatting of a 
>32-bit floating point number (C type "float" as opposed to "double))? 
>e, f or g with some modifier?
> 
Can you cast to (double)?
MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to