Definition | #include <ieee_390.h> extern float float2ieee (float num);
|
Parameter | float num 4-byte floating-point number in /390 format |
Return val. | 4-byte floating-point number in IEEE format (in the event of success)
if the /390 floating-point number is greater than the largest IEEE floating-point number that can be represented.
if the /390 floating-point number is smaller than the smallest IEEE floating-point number that can be represented. The global variable float_exceptions_flag contains information for the event of unsuccessful conversion and is defined as follows: extern int float_exception_flags; enum { float_flag_inexact = 1, float_flag_divbyzero = 2, float_flag_underflow = 4, float_flag_overflow = 8, float_flag_invalid = 16 }; If the /390 floating-point number is greater than the largest IEEE floating-point number that can be represented, float_flag_overflow is set. If the /390 floating-point number is smaller than the smallest IEEE floating-point number that can be represented, float_flag_underflow is set. |
See also | ieee2float, double2ieee, ieee2double |