VF_ceilVD_ceilVE_ceil
VF_ceiltoIVD_ceiltoIVE_ceiltoI
VF_ceiltoBIVD_ceiltoBIVE_ceiltoBI
VF_ceiltoSIVD_ceiltoSIVE_ceiltoSI
VF_ceiltoLIVD_ceiltoLIVE_ceiltoLI
VF_ceiltoQIVD_ceiltoQIVE_ceiltoQI
VF_ceiltoUVD_ceiltoUVE_ceiltoU
VF_ceiltoUBVD_ceiltoUBVE_ceiltoUB
VF_ceiltoUSVD_ceiltoUSVE_ceiltoUS
VF_ceiltoULVD_ceiltoULVE_ceiltoUL
VF_ceiltoUIVD_ceiltoUIVE_ceiltoUI
FunctionRounding to the next whole number that is greater or equal.
Syntax C/C++#include <VFmath.h>
int VF_ceil( fVector Y, fVector X, ui size );
int VF_ceiltoI( iVector Y, fVector X, ui size );
int VF_ceiltoLI( liVector Y, fVector X, ui size );

    (similarly all other functions of this family)
C++ VecObj#include <OptiVec.h>
int vector<T>::ceil( const vector<T>& X );
int vector<int>::ceiltoI( const vector<T>& X );
int vector<long>::ceiltoLI( const vector<T>& X );
Pascal/Delphiuses VFmath;
function VF_ceil( Y, X:fVector; size:UInt ):IntBool;
function VF_ceiltoI( Y:iVector; X:fVector; size:UInt ): IntBool;
function VF_ceiltoLI( Y:liVector; X:fVector; size:UInt ): IntBool;

    (similarly all other functions of this family)
DescriptionEach element of X is rounded to the nearest whole number that is greater than or equal to the input number and the result stored in Y. The functions VF_ceiltoI,   VF_ceiltoLI,   VF_ceiltoU etc. convert the result into the various integer data types (in the cases mentioned, to int, long int, and unsigned, resp.).
Error handlingOVERFLOW errors are handled by setting the result to the extreme value possible. Negative numbers in the versions VF_ceiltoU,   VF_ceiltoUS,   VF_ceiltoUL, and VF_ceiltoUI 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_floor,   VF_chop,   VF_trunc,   ceil,   floor (C/C++ only)

VectorLib Table of Contents  OptiVec home