FRIHOSTFORUMSSEARCHFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Big AWK failures

 


nisibdv
AWK is an interpreted language aimed to the post processing of files. It is very usefull when, for example, you need to take out a column from a multicolumn format file, or for example capitalize different fields in a record.

It has lots of goodness due to its simplicity and you can write very useful oneliners.

But.... it fails dramatically in arithmetics, and most of all in floating point number calculations.

One problem that I discovered recently (after loosing days to find the error in my scripts) is that
it fails in the comparison of negative floating point numbers, for example, for AWK you would have:

-4.3 > -10.5
-4.3 < -9.1

That is like this because Awk seems to be comparing the positive of the first significative component of a number.

I also discovered some failures in floating point division. But I didnt investigate it much.

It is a shame that AWK creators (one of them the creator of the C language) Didń't care enough for AWK to manipulate floating points correctly. It limits enormously its aplicability and usability.
Related topics

SLOW UPLOADING AN SQL FILE
BIG LINUX
Big Dbs
Uploading of big files is forbidden?
Hurricane POUNDS Big Easy

If you like Great Big Sea, tell me what else to listen to.
What version of Photoshop do you use?
Google earth-- Big security Hole..White house hidden now
The Secret Source of Google's Power
A big ad

The next BIG THING --- Thomas
Javascript to create non-Sidebar bookmark in Firefox?
Big brother is watching closer and closer..
xbox 360 the big picture
looking forward to the breaking point.
Reply to topic    Frihost Forum Index -> Computers -> Software

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.