gdl icon indicating copy to clipboard operation
gdl copied to clipboard

different behaviour between IDL and GDL in formatted output

Open brandy125 opened this issue 4 years ago • 1 comments

GDL writes an additional comma at the end if the output is only a single number.

IDL> print,String(FORMAT = '(1(I1, :, ", "))', [1,1])
1,  1
IDL> print,String(FORMAT = '(1(I1, :, ", "))', [1])
1


GDL> print,String(FORMAT = '(1(I1, :, ", "))', [1,1])
1,  1
GDL> print,String(FORMAT = '(1(I1, :, ", "))', [1])
1, 

brandy125 avatar Sep 20 '21 12:09 brandy125

Nice finding, a bug!

GillesDuvert avatar Sep 20 '21 14:09 GillesDuvert