VF_floorVD_floorVE_floor
VF_floortoIVD_floortoIVE_floortoI
VF_floortoBIVD_floortoBIVE_floortoBI
VF_floortoSIVD_floortoSIVE_floortoSI
VF_floortoLIVD_floortoLIVE_floortoLI
VF_floortoQIVD_floortoQIVE_floortoQI
VF_floortoUVD_floortoUVE_floortoU
VF_floortoUBVD_floortoUBVE_floortoUB
VF_floortoUSVD_floortoUSVE_floortoUS
VF_floortoULVD_floortoULVE_floortoUL
VF_floortoUQVD_floortoUQVE_floortoUQ
VF_floortoUIVD_floortoUIVE_floortoUI
FunctionRounding towards minus infinity
Syntax C/C++#include <VFmath.h>
int VF_floor( fVector Y, fVector X, ui size );
int VF_floortoI( iVector Y, fVector X, ui size );
int VF_floortoLI( liVector Y, fVector X, ui size );
int VF_floortoU( uVector Y, fVector X, ui size );

    (similarly all others)
C++ VecObj#include <OptiVec.h>
int vector<T>::floor( const vector<T>& X );
int vector<int>::floortoI( const vector<T>& X );
int vector<long>::floortoLI( const vector<T>& X );
int vector<unsigned>::floortoU( const vector<T>& X );
Pascal/Delphiuses VFmath;
function VF_floor( Y, X:fVector; size:UIntSize ): IntBool;
function VF_floortoI( Y:iVector; X:fVector; size:UIntSize ): IntBool;
function VF_floortoLI( Y:liVector; X:fVector; size:UIntSize ): IntBool;

    (similarly all others)
CUDA function C/C++#include <cudaVFmath.h>
int cudaVF_floor( fVector d_Y, fVector d_X, ui size );
int cudaVF_floortoI( iVector d_Y, fVector d_X, ui size );
int VFcu_floor( fVector h_Y, fVector h_X, ui size );
int VFcu_floortoI( iVector h_Y, fVector h_X, ui size );
CUDA function Pascal/Delphiuses VFmath;
function cudaVF_floor( d_Y, d_X:fVector; size:UIntSize ): IntBool;
function cudaVF_floortoI( d_Y:iVector; d_X:fVector; size:UIntSize ): IntBool;
function VFcu_floor( h_Y, h_X:fVector; size:UIntSize ): IntBool;
function VFcu_floortoI( h_Y:iVector; h_X:fVector; size:UIntSize ): IntBool;
DescriptionEach element of X is rounded to the nearest whole number that is less than or equal to the input number and the result stored in Y. The functions VF_floortoI,   VF_floortoLI,   VF_floortoU, etc. convert the result to the various integer data types (in the cases mentioned, to the types int, long int, or unsigned, respectively).
Error handlingOVERFLOW errors are handled by setting the result to the extreme value possible. Negative numbers in the versions VF_floortoU,   VF_floortoUS,   VF_floortoUL, and VF_floortoUI lead to DOMAIN errors; they are handled by setting the result to 0.
Return valueFALSE (0), if no error occurred, otherwise TRUE (non-zero).
See alsoVF_round,   VF_ceil,   VF_chop,   VF_trunc,   ceil,   floor

VectorLib Table of Contents  OptiVec home