VMS Help  —  CPML  ldexp()
    Interface

      F_TYPE ldexp (F_TYPE x, int n)

1  –  Description

    ldexp() multiplies a floating-point number, x, by 2**n.

                           Entry-Point Names

    Generic                               Compaq
    Function   Data Type   OpenVMS        Tru64 UNIX
    Name       Required    Alpha          Alpha

    ldexp      S_FLOAT     math$ldexp_s   ldexpf
               T_FLOAT     math$ldexp_t   ldexp
               X_FLOAT     math$ldexp_x   ldexpl
               F_FLOAT     math$ldexp_f
               G_FLOAT     math$ldexp_g

2  –  Exceptions

    Exceptional Argument            Routine Behavior

    |x*(2**n)| > max_float          Overflow
    |x*(2**n)| < min_float          Underflow

    Data
    Type  Value for: max_float

    F     Hexadecimal: FFFF7FFF
    G     Hexadecimal: FFFFFFFFFFFF7FFF
    S     Hexadecimal: 7F7FFFFF
    T     Hexadecimal: 7FEFFFFFFFFFFFFF
    X     Hexadecimal: 7FFEFFFFFFFFFFFFFFFFFFFFFFFFFFFF

    F     Decimal: 1.701411e38
    G     Decimal: 8.988465674311579e307
    S     Decimal: 3.402823e38
    T     Decimal: 1.797693134862316e308
    X     Decimal: 1.189731495357231765085759326628007016196477e4932

    Data
    Type  Value for: min_float

    F     Hexadecimal: 00000080
    G     Hexadecimal: 0000000000000010
    S     Hexadecimal: 00000001
    T     Hexadecimal: 0000000000000001
    X     Hexadecimal: 00000000000000000000000000000001

    F     Decimal: 2.9387359e-39
    G     Decimal: 5.562684646268003e-309
    S     Decimal: 1.4012985e-45
    T     Decimal: 4.940656458412465e-324
    X     Decimal: 6.4751751194380251109244389582276465524996e-4966
Close Help