日本語 English
株式会社ヒューリンクス
TEL:03-5642-8384
営業時間:9:00-17:30

int

関数 int は、指定範囲内の各数値に対して、それ以下の最大の整数またはその範囲を返します。すべての数値は最も近い整数に切り捨てられます。

構文

int(numbers)

引数 numbers には、スカラーまたは範囲として与えられた数値を指定します。引数 numbers に欠損値または文字列が含まれる場合は無視され、欠損値または文字列として返されます。

  • int({.9,1.2,2.2,-3.8}) は、範囲 {0.0,1.0,2.0,-4.0} を返します。

関連情報

int

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.

Syntax

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.

Example

The operation int({.9,1.2,2.2,-3.8}) returns a range of {0.0,1.0,2.0,-4.0}.

関連情報