|
Continuous vs fixed width |
Top Previous Next |
|
It is worthwhile reiterating that a width choice of zero allows one to mix GAMS output in without extra spacing as illustrated by putex8.gms
set i /i1 Nuts i2 Bolts/; parameter jdata Hardware Data /i1 22.73 i2 100.918/; put 'Here is a report for the ' jdata.ts:0 ' entries in my GAMS code' //; loop(i, put @5 'For element ' i.tl:0 ' named ' i.te(i):0 ' the data are ' jdata(i) :0:3 ' as entered' /; );
where the red shows zero with specifications for text data and numerical data. In turn we get
Here is a report for the Hardware Data entries in my GAMS code For element i1 named Nuts the data are 22.730 as entered For element i2 named Bolts the data are 100.918 as entered |