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

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

gawk 3.1.5

File size: 273 bytes
Line 
1# Test program from Paul Eggert, eggert@cs.ucla.edu, Jan. 14, 2005
2
3BEGIN {
4 e = "1(e)"
5 ex = "3e2(ex)"
6 x = "6e5(x)"
7
8 print e+0, x+0
9 print 0x
10 print 0e+x
11 print 0ex
12 print 010e2
13 print 0e9.3
14}
15
16# Expected results:
17# 1 600000
18# 06e5(x)
19# 0600001
20# 03e2(ex)
21# 1000
22# 00.3
Note: See TracBrowser for help on using the repository browser.