IntToString(int)

整数値を文字列に変換する

string IntToString(
    int nInteger
);

Parameters

nInteger

文字列にしたい整数値


Description

nIntegerの整数値を文字列に変換する。123が変換されると"123"となる。



Remarks

デバッグなどで有効に使える。この値をオブジェクトに喋らせたり、ログに書き込んだりして数値の確認をすることができる。

もしくは、PCに変動価格を教える事に使ったり、重量の増減をアナウンスしたりすることができそうだ。


Version

1.28

Example

// 数値を喋るサンプル
void main()
{
int foo = 300;
string bar =  IntToString(foo);
SpeakString("値は" + bar + "です。");
}

See Also

functions: IntToFloat | IntToHexString | StringToInt
categories: Type Casting/Conversion Functions


author: Charles Feduke, editor: Lilac Soul, additional contributor(s): Lilac Soul, JP team: geshi, ngtaicho
Send comments on this topic.