github.com/benhoyt/goawk@v1.8.1/testdata/gawk/leaddig.awk (about) 1 # check that values with leading digits get converted the 2 # right way, based on a note in comp.lang.awk. 3 # 4 # run with gawk -v x=2E -f leaddig.awk 5 6 BEGIN { 7 # 4/2018: Put it into the program to make generation of the 8 # recipe automatable 9 x = "2E" 10 11 print "x =", x, (x == 2), (x == 2E0), (x == 2E), (x == 2D) 12 }