Maintainer | bastiaan.heeren@ou.nl |
---|---|
Stability | provisional |
Portability | portable (depends on ghc) |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- data MixedFraction
- wholeNumber :: MixedFraction -> Integer
- fractionPart :: MixedFraction -> Rational
- numerator :: MixedFraction -> Integer
- denominator :: MixedFraction -> Integer
Documentation
data MixedFraction Source #
Instances
wholeNumber :: MixedFraction -> Integer Source #
Always positive
fractionPart :: MixedFraction -> Rational Source #
Always positive
numerator :: MixedFraction -> Integer Source #
Always positive
denominator :: MixedFraction -> Integer Source #
Always positive