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

abs

関数 abs は、指定範囲内にある各数値の絶対値を返します。

構文

abs(numbers)

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

  • col(2) = abs(col(1)) は、列1 のデータの絶対値を 列2 に配置します。

abs

The abs function returns the absolute value for each number in the specified range.

Syntax

abs(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 col(2) = abs(col(1)) places the absolute values of the data in column 1 in column 2.