VF_scale10VD_scale10VE_scale10
FunctionScaling by an integer power of 10.
Syntax C/C++#include <VFmath.h>
int VF_scale10( fVector Y, fVector X, ui size, int Expo );
C++ VecObj#include <OptiVec.h>
int vector<T>::scale10( const vector<T>& X, int Expo );
Pascal/Delphiuses VFmath;
function VF_scale10( Y, X:fVector; size:UInt; Expo:Integer ): IntBool;
DescriptionYi = Xi * (10 Expo)
Note that higher powers of ten are not representable as exact numbers, which may lead to the introduction of round-off error by the scaling. If this is a problem, VF_scale2 should be used instead.
Error handlingOVERFLOW errors lead to a default result of ±HUGE_VAL.
Return valueFALSE (0), if no error occurred, otherwise TRUE (non-zero)
See alsoVF_scale2,   VF_mantexp

VectorLib Table of Contents  OptiVec home