ESBRem Function
Returns Floating Point Remainder, given as X - Int ( X / Y ) * Y.

Unit
QESBPCSMath

Declaration
Function ESBRem(const X, Y: Extended): Extended;

Description
ESBTolerance may need to be changed to a different value.

Parameters
First Float to process
Second Float to process

Category
Arithmetic Routines for Floats

Implementation

function ESBRem (const X, Y: Extended): Extended;
begin
     if FloatIsZero (Y) then
          raise EMathError.Create (rsDivideByZero);

     Result := X - Int (X / Y) * Y
End;


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