We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a0048d commit 7dcb2fcCopy full SHA for 7dcb2fc
source/basic/math/README.md
@@ -77,7 +77,7 @@ console.log(Math.min(...numbers)); // => 1
77
`Math`オブジェクトには数値を整数に丸めるためのメソッドがいくつかあります。
78
代表的なものは、小数点以下を切り捨てる`Math.floor`メソッド、小数点以下を切り上げる`Math.ceil`メソッド、そして四捨五入する`Math.round`メソッドです。
79
80
-[Math.floor][]メソッドは、引数として渡した数以下で最大の整数を返します。このような関数は**底関数**と呼ばれます。
+[Math.floor][]メソッドは、引数として渡した数以下で最大の整数を返します。このような関数は**床関数**と呼ばれます。
81
正の数である`1.3`は`1`になりますが、負の数である`-1.3`はより小さい整数の`-2`に丸められます。
82
83
次の[Math.ceil][]メソッドは、引数として渡した数以上で最小の整数を返します。このような関数は**天井関数**と呼ばれます。
0 commit comments