整数を書式付で文字列にするには,spintiを使う.sprintfを使うとおかしな数値が示される.整数と実数をまとめて示す場合は,文字列の結合を使う.
例
ncl> print(sprintf("f=%f",f)+sprinti(" n=%i",n))
(0) f=1.000000 n=1