Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Zeroing a
- toZeroing :: SaturatingNum a => a -> Zeroing a
Documentation
A zeroing number type is one where all operations return zero if they go out of bounds for the underlying type.
Numbers can be converted to zero by default using toZeroing
.
Instances
toZeroing :: SaturatingNum a => a -> Zeroing a Source #