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.

  1. showFFloatAlt :: RealFloat a => Maybe Int -> a -> ShowS

    base 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.

  2. showFloat :: RealFloat a => a -> ShowS

    base 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.

  3. showGFloat :: RealFloat a => Maybe Int -> a -> ShowS

    base 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.

  4. showGFloatAlt :: RealFloat a => Maybe Int -> a -> ShowS

    base 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.

  5. showHFloat :: RealFloat a => a -> ShowS

    base 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"
    

  6. showHex :: Integral a => a -> ShowS

    base Numeric

    Show non-negative Integral numbers in base 16.

  7. showInt :: Integral a => a -> ShowS

    base Numeric

    Show non-negative Integral numbers in base 10.

  8. showIntAtBase :: Integral a => a -> (Int -> Char) -> a -> ShowS

    base Numeric

    Shows a non-negative Integral number using the base specified by the first argument, and the character representation specified by the second.

  9. showOct :: Integral a => a -> ShowS

    base Numeric

    Show non-negative Integral numbers in base 8.

  10. showSigned :: Real a => (a -> ShowS) -> Int -> a -> ShowS

    base Numeric

    Converts a possibly-negative Real value to a string.

Page 49 of many | Previous | Next