System.Power10

From RAD Studio API Documentation
Revision as of 10:53, 17 December 2014 by AChaves (talk | contribs) (57409)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Delphi

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

C++

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

Properties

Type Visibility Source Unit Parent
function public
System.pas
System.hpp
System System

Description

Returns the value of given floating-point value scaled by a power of 10.

Power10(x, p) is equivalent to x*(10^p).

Example:

Writeln(FloatToStr(Power10(2.345, 2))); // displays 234.5

See Also