Go to the first, previous, next, last section, table of contents.
- sprintf(format[,args])
-
:: C に似たプリント関数
- return
-
文字列
- format
-
文字列
- args
-
オブジェクト
-
フォーマット文字列 format にしたがい args を文字列に変換する.
-
フォーマット文字列の中に
%a
(any) が利用可能.
args の個数はフォーマット文字列の中の %a
の個数に等しくすること.
[0] sprintf("%a: rat = %a",10,x^2-1);
10: rat = x^2-1
- 参照
-
@xref{rtostr}
ChangeLog
-
この関数は 2004-7-13 にコミットされた.
変更をうけたソースコードは builtin/strobj (1.50) である.
-
%a
は Maple の sprintf の真似か.
Go to the first, previous, next, last section, table of contents.