floor()

概要

最小 N より大きい値を返します。 integer これは n が負の値の場合も適用されます。

ceiling ()を使用する または round ( number に変換するには Integer 関数)をクリックします。

構文

floor ( n as Number ) As Integer 
引数 [タイプ] 説明
n Number 入力数値です。

例 1

Intent >floor(5.1) --> 5 

例 2

Intent >floor(5) --> 5 
ここでは、同じ値が整数値であるため、返されます。

例 3

Intent >floor(-5.1) --> -6 
ここでは、次に小さい整数入力が負の値の場合でも、が返されます。