Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

scalb(3) [netbsd man page]

IEEE_TEST(3)						   BSD Library Functions Manual 					      IEEE_TEST(3)

logb, logbf, logbl, scalb, scalbf, significand, significandf -- IEEE test functions LIBRARY
Math Library (libm, -lm) SYNOPSIS
#include <math.h> double logb(double x); float logbf(float x); long double logbl(long double x); double scalb(double x, double n); float scalbf(float x, float n); double significand(double x); float significandf(float x); DESCRIPTION
These functions allow users to test conformance to IEEE Std 754-1985. Their use is not otherwise recommended. logb(x) returns x's exponent n, a signed integer converted to double-precision floating-point. logb(+-infinity) = +infinity; logb(0) = -infinity with a division by zero exception. scalbn(x, n) returns x*(2**n) computed by exponent manipulation. significand(x) returns sig, where x := sig * 2**n with 1 <= sig < 2. significand(x) is not defined when x is 0, +-infinity, or NaN. SEE ALSO
IEEE Std 754-1985 BSD
August 3, 2011 BSD

Check Out this Related Man Page

ILOGB(3)						   BSD Library Functions Manual 						  ILOGB(3)

ilogb, ilogbf, ilogbl, logb, logbf, logbl -- extract exponent LIBRARY
Math Library (libm, -lm) SYNOPSIS
#include <math.h> int ilogb(double x); int ilogbf(float x); int ilogbl(long double x); double logb(double x); float logbf(float x); long double logbl(long double x); DESCRIPTION
ilogb(), ilogbf() and ilogbl() return x's exponent in integer format. ilogb(+-infinity) returns INT_MAX, ilogb(+-NaN) returns FP_ILOGBNAN, and ilogb(0) returns FP_ILOGB0. logb(x), logbf(x), and logbl(x) return x's exponent in floating-point format with the same precision as x. logb(+-infinity) returns +infin- ity, and logb(0) returns -infinity with a division by zero exception. SEE ALSO
frexp(3), ieee(3), math(3), scalbn(3) STANDARDS
The ilogb(), ilogbf(), ilogbl(), logb(), logbf(), and logbl() routines conform to ISO/IEC 9899:1999 (``ISO C99''). The latter three imple- ment the logb function recommended by IEEE Std 754-1985. HISTORY
Function First Appeared In logb() 4.3BSD ilogb() FreeBSD 1.1.5 ilogbf() FreeBSD 2.0 logbf() FreeBSD 2.0 ilogbl() FreeBSD 5.4 logbl() FreeBSD 8.0 BSD
December 16, 2007 BSD
Man Page

6 More Discussions You Might Find Interesting

1. AIX

Capture IP Adress

hello I need for a script to capture the ip address from the connected user. I have 5 logical partitions. With "who", i have the ip adress, but only for 2 servers. Do you know another command to know the ip address of connected clients ? thank you (14 Replies)
Discussion started by: pascalbout
14 Replies

2. AIX

size of directory with ls -l

hello When i do a "ls -l" in a directory (Aix 5.3), i have the result : >ls -l total 65635864 -rw-r--r-- 1 lobi system 2559909888 Feb 20 15:06 cible5.7bdat -rw-r--r-- 1 lobi system 1020098870 Feb 20 13:06 cible6.7bdat -rw-r--r-- 1 lobi system 1544789511 Feb 20 11:06 cible9.7bdat -rw-r--r--... (2 Replies)
Discussion started by: pascalbout
2 Replies

3. AIX

add a hdiskpower in a vg

good morning I want to add a new emc disk in a vg (it is not a big volume group) but when i do it, i have the message: 0516-1162 /usr/sbin/extendvg: Warning, The Physical Partition Size of 64 requires the creation of 3200 partitions for hdiskpower48. The limitation for volume vg01 is 3048... (5 Replies)
Discussion started by: pascalbout
5 Replies

4. Programming

SOAP Client..!

Hi, Can anybody provide me a simple SOAP client in C/C++ ..? Thanks in advance....!! (1 Reply)
Discussion started by: Kattoor
1 Replies

5. AIX

dump -Tv

Hi guys, i need some help to debbug a problem related to an executable file. We I try to run it, it returns a problem related to a library (/usr/lib/libc.a(shr.o)), and when I'm not confident reading the output from dump -Tv. ./xxxxx exec(): 0509-036 Cannot load program ./xxxxx because of... (4 Replies)
Discussion started by: cecco16
4 Replies

6. Shell Programming and Scripting

Perl:: mass replacement of converting C code formats to tgmath.h

hello, i have a lot of C old code I'm updating to C11 with tgmath.h for generic math. the old code has very specific types, real and complex, like cabsl, csinhl, etc usually for simple bulk replacements i would do something simple like this perl -pi -e 's/cosl/cos/g' *.c the reference... (0 Replies)
Discussion started by: f77hack
0 Replies