Tiny beads fall below a marked measuring threshold.

Underflow definition

Floating-point underflow concerns results whose magnitudes are too small for the format’s normal range.

In Spanish
subdesbordamiento
Topic
Number bases and digital representations

Underflow in a picture

Underflow diagramBelow the smallest positive normal value, a floating-point system can have several smaller subnormal values.Start at the normal thresholdSmaller magnitudes enter the tiny rangeUse available subnormal valuesTheir relative spacing is largerRound at the smallest scalesSome tiny results become zero
Below the smallest positive normal value, a floating-point system can have several smaller subnormal values.

How it works

Gradual underflow lets a format represent some such tiny values as subnormal numbers with reduced relative precision. Still smaller results may round to zero. In standards that distinguish an underflow flag from the subnormal range, the flag generally requires both tininess and an inexact result.

Worked examples

Does every number below the smallest positive normal value become zero?

No. A format with subnormals represents some of those values.

Can a negative result underflow?

Yes. Underflow depends on small magnitude, so the sign may be negative.

What is gradual underflow?

The use of subnormal values to extend representation toward zero.

Common mistake

Compare absolute magnitude with the normal threshold. A very large negative result is an overflow issue.

Quick check

Which result is a possible underflow case?

What is an available nonnormal finite value near zero called?

Show answer

A subnormal number.

Can underflow round a nonzero value to zero?

Show answer

Yes.

Sources

Flashcard

Underflow

Reveal the definition

Floating-point underflow concerns results whose magnitudes are too small for the format’s normal range.

Effortless Math. “Underflow.” Math Dictionary.