We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scalar variables in AWK can be either string, number or... strnum. See gawk's manual.
Conversion (especially in comparison and mathematical operations) is governed by these types as in the below table:
Jawk doesn't implement strnum and evaluates dynamically when to convert a String to a Number, and vice versa.
String
Number
Consequence: the below script prints 1 with Jawk, while it should print 0 as with gawk:
1
0
BEGIN { r = 2 == "2.0"; print r }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Scalar variables in AWK can be either string, number or... strnum. See gawk's manual.
Conversion (especially in comparison and mathematical operations) is governed by these types as in the below table:
Jawk doesn't implement strnum and evaluates dynamically when to convert a
String
to aNumber
, and vice versa.Consequence: the below script prints
1
with Jawk, while it should print0
as with gawk:The text was updated successfully, but these errors were encountered: