PL/I · Exception

ONCODE 330: UNDERFLOW

What does ONCODE 330: UNDERFLOW mean in PL/I?

A floating-point calculation produced a result with a magnitude smaller than the smallest value the target format can represent, typically rounded to zero.

ONCODE 330: UNDERFLOWIBM Enterprise PL/I for z/OS · PL/I for AIX

Condition

A floating-point calculation produced a result with a magnitude smaller than the smallest value the target format can represent, typically rounded to zero.

Fix

Check whether the calculation is dividing by a very large number or repeatedly multiplying by values less than one; if a near-zero result is expected and acceptable, handle UNDERFLOW explicitly rather than letting it propagate as an unhandled condition.

Pending source verification. Not yet checked against official documentation.

Related exception