最適な表記を指定し、区切り文字としてピリオド使用することを指定します。
| カテゴリ: | 数値 |
| 配置: | 右 |
|
ステートメント
|
結果
|
|---|---|
options nld locale=fr_FR;
data _null_;
x=1.2;
call symput('macx', put(x, BESTDOTX.));
put x; /* Result is printed as "1,2" */
y=put(x, BESTDOTX.); /*Result is printed as "1.2 */
run; |
1,2 1.2 |
&put &macx; |
1.2 |
data _null_; bx=&macx; /* Succeeds because the value of &macx is 1.2 */ put bx; run; |
1.2 |