|
Function | Convert 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/Delphi | uses 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/Delphi | uses VFstd;
function cudaV_ItoF( d_Y:fVector; d_X:iVector; size:UIntSize ): IntBool;
procedure Vcu_ItoF( h_Y:fVector; h_X:iVector; size:UIntSize );
|
|
Description | Each 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. |
|
|
|
|