V_ItoFV_ItoDV_ItoE
V_BItoFV_BItoDV_BItoE
V_SItoFV_SItoDV_SItoE
V_LItoFV_LItoDV_LItoE
V_QItoFV_QItoDV_QItoE
V_UtoFV_UtoDV_UtoE
V_UBtoFV_UBtoDV_UBtoE
V_UStoFV_UStoDV_UStoE
V_ULtoFV_ULtoDV_ULtoE
V_UQtoFV_UQtoDV_UQtoE
V_UItoFV_UItoDV_UItoE
FunctionConvert integer numbers into floating-point data types.
Syntax C/C++#include <VFstd.h>
    (always the include-file belonging to the destination type!)
void V_ItoF( fVector Y, iVector X, ui size );
    (all other functions of this family are similar)
C++ VecObj#include <OptiVec.h>
void vector<float>::ItoF( const vector<int>& Y );
Pascal/Delphiuses VFstd;
    (always the unit belonging to the destination type!)
procedure V_ItoF( Y:fVector; X:iVector; size:UIntSize );
    (all other functions of this family are similar)
CUDA function C/C++#include <cudaVFstd.h>
int cudaV_ItoF( fVector d_Y, iVector d_X, ui size );
void Vcu_ItoF( fVector h_Y, iVector h_X, ui size );
CUDA function Pascal/Delphiuses VFstd;
function cudaV_ItoF( d_Y:fVector; d_X:iVector; size:UIntSize ): IntBool;
procedure Vcu_ItoF( h_Y:fVector; h_X:iVector; size:UIntSize );
DescriptionEach element of X is converted from the data type int, byte, short int, long int, quad, unsigned, unsigned byte, unsigned short, unsigned long, or ui, resp., into the data type float, double, or extended, resp., and stored in Y. For the inverse procedure, i.e. the conversion of floating-point numbers to integers, the functions of the VF_roundtoI,   VF_floortoI,   VF_ceiltoI, and VF_choptoI families have to be used.
Error handlingnone
Return valuenone
See alsoVF_roundtoI,   VF_floortoI,   VF_ceiltoI,   VF_choptoI,   VF_trunctoI,   V_ItoLI

VectorLib Table of Contents  OptiVec home