You are here: Symbol Reference > AbstractMtxVec Namespace > Classes > TMtxVec Class > public > Rem Method > TMtxVec.Rem Method (TMtxVec, double, integer, integer, integer)
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtxVec.Rem Method (TMtxVec, double, integer, integer, integer)

Calculates reminder after division X/Y.

Pascal
function Rem(const X: TMtxVec; const Y: double; XIndex: integer; Index: integer; Len: integer): TMtxVec; overload;

Reminder is calculated by using the following formula: 

x[i]-y*Trunc(x[i]/y). 

X must be a real. The results will be saved to the calling vector. An exception will be raised if TMtxVecBase.ConditionCheckConditionCheckis True and array borders are overrun.

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!