Manual Pages for UNIX Darwin command on man frexp
MyWebUniversity

Manual Pages for UNIX Darwin command on man frexp

FREXP(3) BSD Library Functions Manual FREXP(3)

NAME

ffrreexxpp - break floating-point number into normalized fraction and power

of 2

SYNOPSIS

##iinncclluuddee <>

double ffrreexxpp(double value, int *exp); long double ffrreexxppll(long double value, int *exp); float ffrreexxppff(float value, int *exp);

DESCRIPTION

The ffrreexxpp() functions break the floating-point number value into a nor-

malized fraction and an integral power of 2. They store the integer in the int object pointed to by exp.

The functions return a number x such that x has a magnitude in the inter-

val [1/2, 1) or 0, and value = x*(2**exp). SSPPEECCIIAALL VVAALLUUEESS

ffrreexxpp(+-0, exp) returns +-0, and stores 0 in the object pointed to by

exp.

ffrreexxpp(+-infinity, exp) returns +-infinity, and stores an unspecified

value in the object pointed to by exp. ffrreexxpp(Nan, exp) returns a Nan, and stores an unspecified value in the object pointed to by exp.

SEE ALSO

math(3), scalbn STANDARDS The ffrreexxpp() functions conform to ISO/IEC 9899:1999(E). BSD January 30, 2003 BSD




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™