Two hand-bent neon signs in a workshop window, plus zero and minus zero.

TypeScript / binary64

Zero has
a sign.

Round a tenth of a cent. Both amounts print as 0. JavaScript remembers which side they came from.

Amount to round

Expression

toCents(-0.001)

Signed result

−0

Object.is(result, −0)

true

Pud’s cents sidecar specifies the exact rounded result, including signed zero.