HOME > テクニカルサポート > 製品 一覧 > SigmaPlot > ユーザーガイド > トランスフォーム関数一覧
ヒューリンクステクニカルサポート
皆様からのご質問のうち、よくある質問を掲載しました。
更新日: 14/05/08

prec

関数 prec は、数値またはその範囲を、指定した有効数字の桁数に丸めます。値は四捨五入されます (0.5 は切り上げされます) 。

 

構文

prec(numbers, digits)

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

引数 digits がスカラーの場合、範囲内の全ての値は同じ桁の有効数字になります。

引数 digits が範囲の場合、有効数字は対応する桁数に応じて変化します。引数 digits の範囲の方が引数 numbers の範囲より小さい場合、対応する桁数がない数値に対しては全て欠損値を返します。

 

 

関連情報

 

prec

The prec function rounds a number or range of numbers to the specified number of significant digits, or places of significance. Values are rounded to the nearest integer; values of exactly 0.5 are rounded up.

Syntax

prec(numbers,digits)

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.

If the digits argument is a scalar, all numbers in the range have the same number of places of significance.

If the digits argument is a range, the number of places of significance vary according to the corresponding range values. If the size of the digits range is smaller than the numbers range, the function returns missing values for all numbers with no corresponding digits.

Example

For x = {13570,3.141,.0155,999,1.92}, the operation prec(x,2) returns {14000,3.100,.0160,1000,1.90}.

For y = {123.5,123.5,123.5,123.5}, the operation prec(y,{1,2,3,4}) returns {100.0, 120.0,124.0,123.5}.

 

関連情報

 

 

前のページにもどる