#include <math.h>float scalbnf(float val, int exp);double scalbn(double val, int exp); long double scalbnl(long double val, int exp);

scalbn( ), scalbnf( ), and scalbnl( ) were added by C99.

The scalbn( ) family of functions returns the product of val and FLT_RADIX raised to the exp power. That is,

val * FLT_RADIXexp

The macro FLT_RADIX is defined in <float.h> and its value is the radix of exponent representation.

A related function is scalbln( ).

C(s)C++ Programmer's Reference
C Programming on the IBM PC (C Programmers Reference Guide Series)
ISBN: 0673462897
EAN: 2147483647
Year: 2002
Pages: 539 © 2008-2017.
If you may any questions please contact us: