Hoogle Search
Within LTS Haskell 24.10 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
showFFloatAlt :: RealFloat a => Maybe Int -> a -> ShowSbase Numeric Show a signed RealFloat value using standard decimal notation (e.g. 245000, 0.0015). This behaves as showFFloat, except that a decimal point is always guaranteed, even if not needed.
showFloat :: RealFloat a => a -> ShowSbase Numeric Show a signed RealFloat value to full precision using standard decimal notation for arguments whose absolute value lies between 0.1 and 9,999,999, and scientific notation otherwise.
showGFloat :: RealFloat a => Maybe Int -> a -> ShowSbase Numeric Show a signed RealFloat value using standard decimal notation for arguments whose absolute value lies between 0.1 and 9,999,999, and scientific notation otherwise. In the call showGFloat digs val, if digs is Nothing, the value is shown to full precision; if digs is Just d, then at most d digits after the decimal point are shown.
showGFloatAlt :: RealFloat a => Maybe Int -> a -> ShowSbase Numeric Show a signed RealFloat value using standard decimal notation for arguments whose absolute value lies between 0.1 and 9,999,999, and scientific notation otherwise. This behaves as showFFloat, except that a decimal point is always guaranteed, even if not needed.
showHFloat :: RealFloat a => a -> ShowSbase Numeric Show a floating-point value in the hexadecimal format, similar to the %a specifier in C's printf.
>>> showHFloat (212.21 :: Double) "" "0x1.a86b851eb851fp7" >>> showHFloat (-12.76 :: Float) "" "-0x1.9851ecp3" >>> showHFloat (-0 :: Double) "" "-0x0p+0"
showHex :: Integral a => a -> ShowSbase Numeric Show non-negative Integral numbers in base 16.
showInt :: Integral a => a -> ShowSbase Numeric Show non-negative Integral numbers in base 10.
showIntAtBase :: Integral a => a -> (Int -> Char) -> a -> ShowSbase Numeric Shows a non-negative Integral number using the base specified by the first argument, and the character representation specified by the second.
showOct :: Integral a => a -> ShowSbase Numeric Show non-negative Integral numbers in base 8.
showSigned :: Real a => (a -> ShowS) -> Int -> a -> ShowSbase Numeric Converts a possibly-negative Real value to a string.