ftoi(3)
Name
ftoi, itof, dtoi, itod, gtoi, itog − convert floating values between VAX and IEEE format
Syntax
int ftoi(value)
float *value;
int itof(value)
float *value;
int dtoi(value)
double *value;
int itod(value)
double *value;
int gtoi(value)
double *value;
int itog(value)
double *value;
Description
The following C library functions convert floating values between VAX and IEEE formats.
The ftoi function converts the specified VAX ffloat number to IEEE single-precision format. It returns zero if successful and nonzero without performing the conversion if not successful (for example, underflow).
The itof function converts the specified IEEE single-precision number to VAX ffloat format. It returns zero if successful and nonzero without performing the conversion if not successful (for example, overflow).
The dtoi function converts the specified VAX dfloat number to IEEE double-precision format. It returns zero if successful and nonzero without performing the conversion if not successful (for example, underflow).
The itod function converts the specified IEEE double-precision number to VAX dfloat format. It returns zero if successful and nonzero without performing the conversion if not successful (for example, underflow or overflow).
The gtoi function converts the specified VAX gfloat number to IEEE double-precision format. It returns zero if successful and nonzero without performing the conversion if not successful (for example, underflow).
The itog function converts the specified IEEE double-precision number to VAX gfloat format. It returns zero if successful and nonzero without performing the conversion if not successful (for example, underflow).