OpenLayers.Numberクラス
メソッド
limitSigDigs
limitSigDigs: function( num, sig )
実数を四捨五入します。
パラメータ
- num {Float}
- sigFloat {Integer}
戻り値
{Float} 四捨五入した実数。
format
format: format: function( num, dec, tsep, dsep )
数字の出力をフォーマットします。。
パラメータ
- num {Float}
- dec {Integer} Number of decimal places to round to. Defaults to 0. Set to null to leave decimal places unchanged.
- tsep {String} 整数部の区切り、ディフォルトは“,”。
- dsep {String} 少数点。ディフォルトは“.”。
戻り値
{String} フォーマットした数字
Add a New Comment
page revision: 7, last edited: 23 May 2008 14:28





