[prog] awk error

Eeva Järvinen eevaj at welho.com
Fri Mar 21 07:38:51 UTC 2008


On Thu, Mar 20, 2008 at 06:43:39PM -0700, Diana Ionescu wrote:
> Hello,
> 
> I finally discovered the error in my codes (shell sccripts & c/c++) ...
> 
> I have a fresh new gentoo64 installed with 2.6.24-gentoo-r3, gcc-4.1.2, GNU Awk 3.1.5
> 
> So here is the *thing*
> echo 60 6.510417e-05 | awk '{print ($1*$2)}'
> 360
> 
> when it should be: 0.00390625 (which I get on a different computer)
> 
> 
> How can I enable the exponential readings? Or where is it coming from?



More information about the Programming mailing list