Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Explicit conversion of floating-point numbers

&pagelevel(5)&pagelevel

In addition to the compiler and runtime system extensions for IEEE support described in the above sections, there are also functions for explicitly converting floating-point numbers between the /390 and IEEE formats.

The following conversion functions are declared in the include file <ieee_390.h>:

extern float float2ieee(float num); 
extern float ieee2float(float num); 
extern double double2ieee(double num); 
extern double ieee2double(double num); 

Conversion functions are described in detail in the chapter “Functions and variables inalphabetical order”.