Decimal has no rounded()

Decimal could conform to FloatingPoint in the "provides all of the API surface" but not in the "... with the protocol-defined semantics" sense.

There's a whole bunch of ways in which it breaks down, but two name just two concrete ones that come immediately to mind: there's no infinity and no fused multiply-add operation.

10 Likes