scalbn, scalbnf, scalbnl, scalbln, scalblnf, scalblnl - multiply floating-point number by integral power of radix
#include <math.h> double scalbln(double x, long int exp); float scalblnf(float x, long int exp); long double scalblnl(long double x, long int exp); double scalbn(double x, int exp); float scalbnf(float x, int exp); long double scalbnl(long double x, int exp); Link with -lm. Feature Test Macro Requirements for glibc (see feature_test_macros(7)): scalbln(), scalblnf(), scalblnl(): _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L || /* Since glibc 2.19: */ _DEFAULT_SOURCE scalbn(), scalbnf(), scalbnl(): _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L || /* Since glibc 2.19: */ _DEFAULT_SOURCE || /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
These functions multiply their first argument x by FLT_RADIX (probably 2) to the power of exp, that is: x * FLT_RADIX ** exp The definition of FLT_RADIX can be obtained by including <float.h>.
On success, these functions return x * FLT_RADIX ** exp. If x is a NaN, a NaN is returned. If x is positive infinity (negative infinity), positive infinity (negative infinity) is returned. If x is +0 (-0), +0 (-0) is returned. If the result overflows, a range error occurs, and the functions return HUGE_VAL, HUGE_VALF, or HUGE_VALL, respectively, with a sign the same as x. If the result underflows, a range error occurs, and the functions return zero, with a sign the same as x.
See math_error(7) for information on how to determine whether an error has occurred when calling these functions. The following errors can occur: Range error, overflow An overflow floating-point exception (FE_OVERFLOW) is raised. Range error, underflow An underflow floating-point exception (FE_UNDERFLOW) is raised. These functions do not set errno.
These functions first appeared in glibc in version 2.1.
For an explanation of the terms used in this section, see attributes(7). ┌──────────────────────────────────┬───────────────┬─────────┐ │Interface │ Attribute │ Value │ ├──────────────────────────────────┼───────────────┼─────────┤ │scalbn(), scalbnf(), scalbnl(), │ Thread safety │ MT-Safe │ │scalbln(), scalblnf(), scalblnl() │ │ │ └──────────────────────────────────┴───────────────┴─────────┘
C99, POSIX.1-2001, POSIX.1-2008.
These functions differ from the obsolete functions described in scalb(3) in the type of their second argument. The functions described on this page have a second argument of an integral type, while those in scalb(3) have a second argument of type double. If FLT_RADIX equals 2 (which is usual), then scalbn() is equivalent to ldexp(3).
This page is part of release 4.09 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/. 2016-03-15 SCALBLN(3)
More Linux Commands
mdvalidater(1) - Validate XML Documents against the ECMA Doc
mdvalidator has been obsoleted by mdoc(1). See the mdoc-validate(1) man page. mdvalidator is a program that validates the specified FILES against the ECMA Docum
XkbAllocKeyboard(3) - Creates a keyboard description from sc
Applications seldom need to directly allocate a keyboard description; calling XkbGetKeyboard usually suffices. In the event you need to create a keyboard descri
sinl(3) - sine function (Library - Linux man page)..........
The sin() function returns the sine of x, where x is given in radians. RETURN VALUE On success, these functions return the sine of x. If x is a NaN, a NaN is re
oodraw(1) - LibreOffice office suite - Linux manual page....
LibreOffice (LO for short) is a multi-platform office productivity suite. It was derived from OpenOffice.org 3.3 Beta on September 28, 2010. libreoffice is a sh
dnsblog(8) - Postfix DNS white/blacklist logger (Man Page)
The dnsblog(8) server implements an ad-hoc DNS white/blacklist lookup service. This may eventually be replaced by an UDP client that is built directly into the
XFillRectangle(3) - fill rectangles, polygons, or arcs......
The XFillRectangle and XFillRectangles functions fill the specified rectangle or rectangles as if a four-point FillPolygon protocol request were specified for e
Tcl_AppendStringsToObj(3) - manipulate Tcl objects as string
The procedures described in this manual entry allow Tcl objects to be manipulated as string values. They use the internal representation of the object to store
cacademo(1) - libcaca's demonstration applications (ManPage)
This manual page documents briefly the cacademo and cacafire programs. cacademo displays ASCII art effects with animated transitions: metaballs, moire pattern o
perl5121delta(1) - what is new for perl v5.12.1 (Man Page)
This document describes differences between the 5.12.0 release and the 5.12.1 release. If you are upgrading from an earlier release such as 5.10.1, first read p
glutStrokeCharacter(3) - renders a stroke character using Op
Without using any display lists, glutStrokeCharacter renders the character in the named stroke font. The available fonts are: GLUT_STROKE_ROMAN A proportionally
Tcl_EventuallyFree(3) - avoid freeing storage while it is be
These three procedures help implement a simple reference count mechanism for managing storage. They are designed to solve a problem having to do with widget del
ModemManager(8) modem management daemon - Linux manual page
The ModemManager daemon provides a unified high level API for communicating with (mobile broadband) modems. While the basic commands are standardized, the more