Hi,
I'm having a problem with awk (running on Tru64 5.1)
I have the following 'example' script
{
val3 = 16.775 * 100;
print "val3:" val3;
if (val3 == 1677.5)
print "match";
}
Now for some reason, I never get the 'match' text printed out.
Even though I know that val3 is 1677.5, the IF statement at the end does not seem to be true for some reason.
If I put in 'var3 = 1677.5' before the IF statement, then the IF works.
Can anyone explain what is going on , and why the IF statement does not return true?
Thanks for any help,
Rob Donovan
ProIV Resource Centre <a href='
I'm having a problem with awk (running on Tru64 5.1)
I have the following 'example' script
{
val3 = 16.775 * 100;
print "val3:" val3;
if (val3 == 1677.5)
print "match";
}
Now for some reason, I never get the 'match' text printed out.
Even though I know that val3 is 1677.5, the IF statement at the end does not seem to be true for some reason.
If I put in 'var3 = 1677.5' before the IF statement, then the IF works.
Can anyone explain what is going on , and why the IF statement does not return true?
Thanks for any help,
Rob Donovan
ProIV Resource Centre <a href='