FAILURE MAP
← Case archive

FA-17327 / Floating-point arithmetic / Member archive

Nearest floating remainder canonicalizes exact negative zero · case 02

Nearest floating remainder canonicalizes exact negative zero.

Member previewVariant 2 · 3 implementations · 12 checks per implementation

Case contract

For finite x and finite nonzero y, return the remainder x-n*y with n the nearest integer quotient, ties to even. The output has magnitude at most abs(y)/2; exact zero has the sign of x. Finite results are rendered to eleven significant decimal digits; modeled domain violations and arithmetic errors are explicit strings.

Why this case matters

An offline floating representation model isolates a reproducible arithmetic fault.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
negative exact"0""-0"Failed

MEMBER ARCHIVE

The complete case is available to members.

This record includes three runnable implementations, regression fixtures, execution results, and source hashes.

Member access is invitation-based. Sign in with your invited account to inspect the sources.

Sign in to the archive ↗