Copyright | (C) 2018 Claude Heiland-Allen |
---|---|
License | BSD3 |
Maintainer | Claude Heiland-Allen <claude@mathr.co.uk> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
This module re-exports the default platform-specfic ABI for C's long double.
- data LongDouble = LD !Word64 !Word64
- truncate' :: LongDouble -> LongDouble
- round' :: LongDouble -> LongDouble
- ceiling' :: LongDouble -> LongDouble
- floor' :: LongDouble -> LongDouble
- fromDouble :: Double -> LongDouble
- toDouble :: LongDouble -> Double
- fromInt :: Int -> LongDouble
- toInt :: LongDouble -> Int
long double data type
data LongDouble Source #
The long double type on x86_64: 80bits of x87 FPU data in 128bits of space.
RealFrac alternatives
truncate' :: LongDouble -> LongDouble Source #
Alternate versions of RealFrac methods that keep the value as a long double.
round' :: LongDouble -> LongDouble Source #
Alternate versions of RealFrac methods that keep the value as a long double.
ceiling' :: LongDouble -> LongDouble Source #
Alternate versions of RealFrac methods that keep the value as a long double.
floor' :: LongDouble -> LongDouble Source #
Alternate versions of RealFrac methods that keep the value as a long double.
Conversions
fromDouble :: Double -> LongDouble Source #
toDouble :: LongDouble -> Double Source #
fromInt :: Int -> LongDouble Source #
toInt :: LongDouble -> Int Source #