Espaces de noms
Variantes
Affichages
Actions

logb

De cppreference.com
< c‎ | numeric‎ | math

 
 
 
Fonctions mathématiques courantes
Fonctions
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Opérations de base
Original:
Basic operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
remainder (C99)
remquo (C99)
fma (C99)
fmax (C99)
fmin (C99)
fdim (C99)
nan
nanf
nanl
(C99)
(C99)
(C99)
Les fonctions exponentielles
Original:
Exponential functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
exp
exp2 (C99)
expm1 (C99)
log
log10
log1p (C99)
log2 (C99)
Les fonctions de puissance
Original:
Power functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
sqrt
cbrt (C99)
hypot (C99)
pow
Les fonctions trigonométriques et hyperboliques
Original:
Trigonometric and hyperbolic functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
sinh
cosh
tanh
asinh (C99)
acosh (C99)
atanh (C99)
Erreur fonctions et gamma
Original:
Error and gamma functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
erf (C99)
erfc (C99)
lgamma (C99)
tgamma (C99)
Entier le plus proche opérations en virgule flottante
Original:
Nearest integer floating point operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ceil
floor
round
lround
llround
(C99)
(C99)
(C99)
trunc (C99)
nearbyint (C99)
rint
lrint
llrint
(C99)
(C99)
(C99)
Flottant fonctions de manipulation de points
Original:
Floating point manipulation functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ldexp
scalbn
scalbln
(C99)
(C99)
ilogb (C99)
logb (C99)
Classification
Original:
Classification
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
fpclassify (C99)
isfinite (C99)
isinf (C99)
isnan (C99)
isnormal (C99)
signbit (C99)
Macro constantes
Original:
Macro constants
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
FP_NORMAL
FP_SUBNORMAL
FP_ZERO
FP_INFINITE
FP_NAN
(C99)
(C99)
(C99)
(C99)
(C99)
 
Defined in header <math.h>
float       logbf( float arg );
double      logb( double arg );
long double logbl( long double arg );
Extrait la valeur de l'exposant de la arg argument en virgule flottante, et retourne une valeur à virgule flottante. Formellement, le résultat est la partie intégrante de log
r
|arg|
signé en tant que valeur à virgule flottante, pour les non-nul arg, où r est FLT_RADIX. Si arg est inférieure à la normale, elle est traitée comme si elle était normalisée .
Original:
Extracts the value of the exponent from the floating-point argument arg, and returns it as a floating-point value. Formally, the result is the integral part of log
r
|arg|
as a signed floating-point value, for non-zero arg, where r is FLT_RADIX. If arg is subnormal, it is treated as though it was normalized.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Sommaire

[modifier] Paramètres

arg -
valeur du point flottant
Original:
floating point value
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[modifier] Retourne la valeur

L'exposant virgule flottante .
Original:
The floating-point exponent.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Erreur de domaine ou une plage peut se produire si arg est nul .
Original:
Domain or range error may occur if arg is zero.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[modifier] Notes

La valeur de l'exposant retourné par logb est toujours inférieur de 1 l'exposant retuned par frexp en raison des exigences de normalisation différents: pour le e exposant retourné par logb, |arg*r-e
|
est comprise entre 1 et r (typiquement entre 1 et 2), mais pour le exposant e retourné par frexp, |arg*2-e
|
se situe entre 0.5 et 1 .
Original:
The value of the exponent returned by logb is always 1 less than the exponent retuned by frexp because of the different normalization requirements: for the exponent e returned by logb, |arg*r-e
|
is between 1 and r (typically between 1 and 2), but for the exponent e returned by frexp, |arg*2-e
|
is between 0.5 and 1.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[modifier] Exemple

[modifier] Voir aussi

se décompose en un certain nombre mantisse et d'une puissance de 2
Original:
decomposes a number into significand and a power of 2
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction) [edit]
(C99)
extrait exposant du nombre
Original:
extracts exponent of the number
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction) [edit]
(C99)
(C99)
multiplie par un nombre FLT_RADIX élevé à une puissance
Original:
multiplies a number by FLT_RADIX raised to a power
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction) [edit]