Delphi / Object Pascal · Exception

Runtime Error 205: EOverflow (floating point overflow)

What does Runtime Error 205: EOverflow (floating point overflow) mean in Delphi / Object Pascal?

A floating-point calculation produced a result too large for the type to represent.

Runtime Error 205: EOverflow (floating point overflow)Delphi (VCL) · Delphi (FireMonkey)

Condition

A floating-point calculation produced a result too large for the type to represent.

Fix

Check for a value growing unbounded across iterations, and confirm the variable's type (Single, Double, Extended) has enough range for the magnitude the calculation actually needs.

Pending source verification. Not yet checked against official documentation.

Related exception