TenToY Function
Returns 10^Y - handles all cases.

Unit
QESBPCSMath

Declaration
Function TenToY(const Y: Extended): Extended;

Description
Thanks to Rory Daulton for improvements.

Parameters
Value to use as Power.

Category
Arithmetic Routines for Floats

Implementation

function TenToY (const Y: Extended): Extended;
begin
     if FloatIsZero (Y) then
          Result := 1
     else if Y < -3.58E4931 then
          Result := 0
     else
          Result := Pow2 (Y * Log10Base2)
End;


HTML generated by Time2HELP
http://www.time2help.com