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

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

Re: Can you explain this????


From: Paul Eggert
Subject: Re: Can you explain this????
Date: 18 Sep 2003 12:28:39 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

"Luis Miguel Sousa" <address@hidden> writes:

> Can you explain this????
> 
> echo "-2.050 100000" | awk '{printf("%d\n",$1*$2)}'
> -204999

The Gawk manual explains this in its Basic Programming Concepts section.  See:

http://www.gnu.org/manual/gawk/html_node/Floating-Point-Issues.html#Floating%20Point%20Issues

That web page mentions Goldberg's paper, whose URL has moved since the
www.gnu.org manual was last updated.  Here's the current URL:

http://www.validlab.com/goldberg/paper.ps




reply via email to

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