Re: value()

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Tue, 18 Feb 2003 00:30:04 -0300, <rforno at tutopia.com> wrote:

>
> Derek:
> What do you mean by "truncating digits"? The only digits I see that %g
> truncates are zeroes at the right of the decimal part, that perhaps is 
> what
> the user wants. Is this what you mean?

printf(1, "%g", 12.3456789)  ==> 12.3457
printf(1, ".16g%", 12.3456789) ==> 12.3456789

-- 

cheers,
Derek Parnell

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu