-qfloat=rndsngl

The -qfloat=rndsngl option is provided for cases where it is necessary to exactly duplicate the results of an implementation that uses single-precision floating-point arithmetic for float expressions. The rndsngl option causes the compiler to round the results of floating-point operations on float operands to single precision. The effect of rounding the intermediate results to single precision is the same as if single-precision operations had been used for evaluating float expressions. Runtime performance can decrease significantly because of the increased rounding overhead.

Some programs might check portions of their results by comparing those results with values computed on other systems. Again, the rndsngl option may be required to duplicate the previous results and to have such programs report correct execution. Programs checking double-precision results may also require the nomaf option.



Overview
-qfloat=nomaf
-qfloat=hssngl
-qfloat=nans
-qfloat=hsflt
-qflttrap


Sample TRAP Exception Handler


float Compiler Option
flttrap Compiler Option