
TypeScript / binary64
Zero has
a sign.
Round a tenth of a cent. Both amounts print as 0. JavaScript remembers which side they came from.
Expression
toCents(-0.001)
Signed result
Object.is(result, −0)
Pud’s cents sidecar specifies the exact rounded result, including signed zero.