HELPLIB.HLB  —  CPML  scalb()
    Interface

      F_TYPE scalb (F_TYPE x, F_TYPE y)

1  –  Description

    scalb() = x*(2**y) computed, for integer-valued floating point
    number y.

                           Entry-Point Names

    Generic
    Function   Data Type   OpenVMS        Tru64 UNIX
    Name       Required

    scalb      S_FLOAT     math$scalb_s   scalbf
               T_FLOAT     math$scalb_t   scalb
               X_FLOAT     math$scalb_x   scalbl
               F_FLOAT     math$scalb_f
               G_FLOAT     math$scalb_g

2  –  Exceptions

    Exceptional Argument   Routine Behavior

    x*(2**y) > max_float   Overflow
    x*(2**y) < min_float   Underflow
    x=0, y=infinity        Invalid argument
    x=infinity, y=-        Invalid argument
    infinity

    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