System.Math.Floor

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

Delphi

function Floor(const X: Single): Integer;
function Floor(const X: Double): Integer;
function Floor(const X: Extended): Integer;

C++

extern DELPHI_PACKAGE int __fastcall Floor(const float X)/* overload */;

プロパティ

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

説明

変数を切り下げます。

Floor 関数は、数値を負の無限大方向へ切り下げます。 以下に例を示します。

Floor(-2.8) = -3

Floor(2.8) = 2

Floor(-1.0) = -1

メモ:   X の絶対値は MaxInt より小さくなければなりません。

関連項目