Round Decimal Places
数値を、指定された数の小数の桁数に丸めます。
他の丸めオプションとして、Round (最も近い整数)、Round Up、Round Downがあります。
入力フィールド
-
number:丸める数値
-
decimal places:小数第何位で丸めるか
出力フィールド
- rounded:丸め後の数値
例
-
numberが
10.33333333
、decimal placesが2
なら、roundedは10.33
になります -
numberが
10.66666666
、decimal placesが1
なら、roundedは10.7
になります