string DoubleToStr(double value, int digits)
Returns text string with the specified numerical value converted into a specified precision format.
指定数値を、指定された精度フォーマットに変換した文字列テキストにして返します。
Parameters:
パラメータ:
value - Floating point value.
浮動小数点値
digits - Precision format, number of digits after decimal point (0-8).
精度フォーマット、小数点以下の桁数(0-8)。
Sample:
サンプル:
string value=DoubleToStr(1.28473418, 5);
// the value is "1.28473"
|