apl>" <-APL2-------------------- sam256.txt ---------------------------->
apl>" <- format by specification (lFr) pp 145, 146. -------------------->
apl>4 2 12 -5 F r # 3 2 R 1 .468987 2 57.276 3 27963
1.00 4.6899e-1
2.00 5.7276e1
3.00 2.7963e4
apl>4 0 10 2 F r
1 0.47
2 57.28
3 27963.00
apl>" ------------------------------------------------------------------
apl>15 0 F 2*70 " Should cause overflow
15 0 F 2*70 " Should cause overflow
^ 29 - a width is too small in format.
apl>Lfc[4]#'?'
apl>15 0 F 2*70 " Should cause overflow
???????????????
apl>" ------------------------------------------------------------------
apl>7 2 F s # 3 2 R I 6
1.00 2.00
3.00 4.00
5.00 6.00
apl>3 F s
1.000 2.000
3.000 4.000
5.000 6.000
apl>" ------------------------------------------------------------------
apl>a#4 2R'amt' 'percent' 5 26.31 6 31.5 8 42.11
apl>3 0 9 2 F a
amt percent
5 26.31
6 31.50
8 42.11
apl>0 F a
amt percent
5 26
6 32
8 42
apl>L#d#'item' 'pens' 'books' 'paper',a
item amt percent
pens 5 26.31
books 6 31.5
paper 8 42.11
apl>5 0 5 0 9 2 F d " First column s/b left justified because all char.
item amt percent
pens 5 26.31
books 6 31.50
paper 8 42.11
apl>2 F 1 (2 3) " Should cause domain error.
2 F 1 (2 3) " Should cause domain error.
^ 133 - Domain error.
apl>2 F `1 3 2 R(1 2) (3 4 5) 6 7 (8 9) 10
1.00 2.00 3.00 4.00 5.00
6.00 7.00
8.00 9.00 10.00
apl>)off