std::log2 — cppreference.com
De cppreference.com
<metanoindex/>
<tbody> </tbody>
| Déclaré dans l'en-tête <cmath> |
||
|
|
(depuis C++11) | |
|
|
(depuis C++11) | |
|
|
(depuis C++11) | |
|
|
(depuis C++11) | |
Calcule le logarithme de base de 2 arg .
Original:
Computes the base 2 logarithm of arg.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Paramètres
| arg | - | valeur du point flottant Original: floating point value The text has been machine-translated via Google Translate. |
Retourne la valeur
log
2(arg)
Erreur de domaine se produit si arg est négatif. NAN est retourné dans ce cas .
Original:
Domain error occurs if arg is negative. NAN is returned in that case.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Erreur d'intervalle se produit si arg est 0. -HUGE_VAL est retourné dans ce cas .
Original:
Range error occurs if arg is 0. -HUGE_VAL is returned in that case.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Voir aussi
calcule naturel (base e) logarithme (de base e) (ln(x)) Original: computes natural (base e) logarithm (to base e) (ln(x)) The text has been machine-translated via Google Translate. (fonction) [edit] | |
(C++11) |
retours 2 élevé à la puissance donnée (2x) Original: returns 2 raised to the given power (2x) The text has been machine-translated via Google Translate. (fonction) [edit] |
calcule commune (base 10) Logarithme (log10(x)) Original: computes common (base 10) logarithm (log10(x)) The text has been machine-translated via Google Translate. (fonction) [edit] | |