寫入數值,此數值包含前置歐元符號 (E)、隔開每三位數的句點,以及隔開小數部分的逗號。
類別: | 數值 |
對齊: | 右 |
陳述式
|
結果
|
---|---|
----+----1----+----2----+----3 |
|
put amount eurox10.2; |
E1.254,71 |
put amount eurox5.; |
1.255 |
put amount eurox9.2; |
E1.254,71 |
put amount eurox15.3; |
E1.254,710 |
data _null_; input x; put x eurox10.2; put x eurox5.; put x eurox9.2; put x eurox15.3; datalines; 1254.71 ; run; SAS Log: E1.254,71 1.255 E1.254,71 E1.254,710
/* This code determines the default length. */ data _null_; input x; put x eurox.; datalines; 1 22 333 4444 55555 666666 7777777 88888888 999999999 1234561234 ;run; SAS Log: E1 E22 E333 E4.444 55.555 666666 7.78E6 8.89E7 1E9 1.23E9