System.ConvUtils.ConvUnitCompareValue
Delphi
function ConvUnitCompareValue(const AValue1: Double; const AType1: TConvType;
const AValue2: Double; const AType2: TConvType): TValueRelationship;
C++
extern DELPHI_PACKAGE System::Types::TValueRelationship __fastcall ConvUnitCompareValue(const double AValue1, const TConvType AType1, const double AValue2, const TConvType AType2);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.ConvUtils.pas System.ConvUtils.hpp |
System.ConvUtils | System.ConvUtils |
説明
2 つの尺度の関係を示します。
ConvUnitCompareValue 関数を呼び出すと,2 つの尺度を比較できます。2 つの尺度は測定対象が同じ(変換ファミリーが同じ)でなければなりませんが,単位が同じである必要はありません。
AValue1 と AValue2 は,比較する 2 つの尺度です。
AType1 は AValue1 の単位です。
AType2 は AValue2 の単位です。
ConvUnitCompareValue は次の値を返します。
AValue1 が AValue2 より小さい値を表す場合は LessThanValue
AValue1 と AValue2 が等しい場合は EqualsValue
AValue1 が AValue2 より大きい値を表す場合は GreaterThanValue