![]() |
| サイトマップ | |
|
関数 int
は、指定範囲内の各数値に対して、それ以下の最大の整数またはその範囲を返します。すべての数値は最も近い整数に切り捨てられます。
int
(numbers)
引数 numbers には、スカラーまたは範囲として与えられた数値を指定します。引数 numbers に欠損値または文字列が含まれる場合は無視され、欠損値または文字列として返されます。
int({.9,1.2,2.2,-3.8})
は、範囲 {0.0,1.0,2.0,-4.0}
を返します。
The int function returns a number or range of numbers equal to the largest integer less than or equal to each corresponding number in the specified range. All numbers are rounded down to the nearest integer.
int(numbers)
The numbers argument can be a scalar or range of numbers. Any missing value or text string contained within a range is ignored and returned as the string or missing value.
The operation int({.9,1.2,2.2,-3.8}) returns a range of {0.0,1.0,2.0,-4.0}.