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

Absolute values.

Pascal
function Abs: TMtxVec; overload;

Calculate the absolute value of all calling object elemets in-place.

var a: TVec; begin CreateIt(a); a.SetIt(True,[1,-2,3,4]); a.Abs; FreeIt(a); end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!