System.Power10

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

Delphi

function Power10(val: Extended; power: Integer): Extended;

C++

extern DELPHI_PACKAGE Extended __fastcall Power10(Extended val, int power);

プロパティ

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


説明

指定された浮動小数点値に 10 の累乗を掛けた値を返します。

Power10(x, p)x*(10^p) と同等です。

以下に例を示します。

Writeln(FloatToStr(Power10(2.345, 2))); // 234.5 が表示される

関連項目