source: trunk/essentials/sys-apps/gawk/test/convfmt.awk

Last change on this file was 3076, checked in by bird, 18 years ago

gawk 3.1.5

File size: 258 bytes
Line 
1BEGIN {
2 CONVFMT = "%2.2f"
3 a = 123.456
4 b = a "" # give `a' string value also
5 printf "a = %s\n", a
6 CONVFMT = "%.6g"
7 printf "a = %s\n", a
8 a += 0 # make `a' numeric only again
9 printf "a = %s\n", a # use `a' as string
10}
Note: See TracBrowser for help on using the repository browser.