VF_truncVD_truncVE_trunc
VF_trunctoIVD_trunctoIVE_trunctoI
VF_trunctoBIVD_trunctoBIVE_trunctoBI
VF_trunctoSIVD_trunctoSIVE_trunctoSI
VF_trunctoLIVD_trunctoLIVE_trunctoLI
VF_trunctoQIVD_trunctoQIVE_trunctoQI
VF_trunctoUVD_trunctoUVE_trunctoU
VF_trunctoUBVD_trunctoUBVE_trunctoUB
VF_trunctoUSVD_trunctoUSVE_trunctoUS
VF_trunctoULVD_trunctoULVE_trunctoUL
VF_trunctoUIVD_trunctoUIVE_trunctoUI
FunctionRounding by "truncating" toward zero.
Syntax C/C++#include <VFmath.h>
int VF_trunc( fVector Y, fVector X, ui size );
int VF_trunctoI( iVector Y, fVector X, ui size );
int VF_trunctoU( uVector Y, fVector X, ui size );

    (similarly all other functions of this family)
C++ VecObj#include <OptiVec.h>
int vector<T>::trunc( const vector<T>& X );
int vector<int>::trunctoI( const vector<T>& X );
int vector<unsigned>::trunctoU( const vector<T>& X );
Pascal/Delphiuses VFmath;
function VF_trunc( Y, X:fVector; size:UInt ):IntBool;
function VF_trunctoI( Y:iVector; X:fVector; size:UInt ):IntBool;
function VF_trunctoLI( Y:liVector; X:fVector; size:UInt ):IntBool;

    (similarly all other functions of this family)
DescriptionThese functions are identical to those of the VF_chop family. They have been defined in order to maintain consistency with the Pascal/Delphi function trunc. For details, see VF_chop.

VectorLib Table of Contents  OptiVec home