bug-gawk
[Top][All Lists]
Advanced

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

[bug-gawk] Awk cannot properly deal with too small numbers.


From: Zhengyu Guo
Subject: [bug-gawk] Awk cannot properly deal with too small numbers.
Date: Thu, 14 Apr 2016 11:44:52 -0500

Hi,

I encountered a problem when dealing with very small numbers. The test case this shown below

~~~
$ echo 1.1e-307 | awk '$1<0.05{print}'
1.1e-307
$ echo 1.1e-309 | awk '$1<0.05{print}’
~~~

Both commands should print out the input number. However, the second command print out nothing. 

It seems that when the numeric number is too small, AWK cannot process it correctly. 

Thanks!

reply via email to

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