VF_intfracVD_intfracVE_intfrac
FunctionSplit up the elements of a vector into their integer and fractional parts.
Syntax C/C++#include <VFmath.h>
int VF_intfrac( fVector IntPart, fVector FracPart, fVector X, ui size );
C++ VecObj#include <OptiVec.h>
int vector<T>::intfrac( vector<T> FracPart, const vector<T>& X );
Pascal/Delphiuses VFmath;
function VF_intfrac( IntPart, FracPart, X:fVector; size:UInt ):IntBool;
DescriptionThe integer parts of the elements of X are stored in IntPart, the fractional parts in FracPart. Notice that IntPart is a floating-point vector, even though it contains integer numbers (which might be larger than could be stored in the integer data types).
Error handlingnone
Return valuealways FALSE (0)
See alsoVF_mantexp,  modf (C/C++ only)

VectorLib Table of Contents  OptiVec home