bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

printing big decimals


From: Russ Cox
Subject: printing big decimals
Date: Mon, 24 Mar 2003 16:20:03 -0500

running gawk-3.1.1.

gawk 'BEGIN{x=5*1024*1024*1024; printf("%d\n", x);}'

prints 5.36871e+09.  i think the implicit format for 
overflow of %d should be %.0f rather than whatever
it is.  that would preserve the illusion a bit longer.
i can't find mention of this in the man page.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]