System.Frac

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

function Frac(const X: Extended): Extended;

C++

extern DELPHI_PACKAGE Extended __fastcall Frac(const Extended X);

プロパティ

種類 可視性 ソース ユニット
function public
System.pas
System.hpp
System System


説明

実数の小数部分を返します。

Delphi コードでは、Frac 関数は、引数 X の小数部分を返します。

X は、実数型の式です。結果は X の小数部分で、つまり、Frac(X) = X - Int(X) となります。

関連項目

コード サンプル