Dew MtxVec NET
TMtxVec.Trunc Methods
Summary
Rounds a real number towards zero.

Class
TMtxVec

Declaration
Function Trunc(Src: TMtxVec; SrcIndex, Index, Len: integer): TMtxVec;

Description
Truncate Src object elements [SrcIndex]..[SrcIndex+Len-1] and store the results to calling object elemenents [Index]..[Index+Len-1]. Size and Complex property of calling object must be set explicitly to match those of Src object. An exception is raised if array borders are overrun/underrun.
Declaration
Function Trunc(var Dst: TIntegerArray): TMtxVec;

Description
Truncate all calling object elements and store the result in the Dst integer array. Length of the array is automatically adjusted. If the calling object is Complex, the length of the Dst array is equal to 2*Length.
Declaration
Function Trunc: TMtxVec;

Description
Rounds all calling object elements towards zero to an integer and stores the result in the calling object again as floating point numbers.
 See Also 
Frac 
Round 

Declaration
Function Trunc(Index, Len: integer): TMtxVec;

Description
Truncate calling object elements [Index]..[Index+Len-1] in-place. An exception is raised if array borders are overrun/underrun.
Declaration
Function Trunc(Src: TMtxVec): TMtxVec;

Description
Truncate all Src object elements and store the results in calling object elements. Size and Complex property of calling object are adjusted automatically.

Copyright 2008 Dew Research
http://www.dewresearch.com