modf
De cppreference.com
![]() | This page has been machine-translated from the English version of the wiki using Google Translate. The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
Déclaré dans l'en-tête <math.h> | ||
float modff(float x, float* iptr ); | ||
double modf(double x, double* iptr ); | ||
longdouble modfl(longdouble x, longdouble* iptr ); | ||
Se décompose donné flottant
x
valeur du point en parties intégraux et fractionnaires, chacun ayant le même type et le signe que x
. La partie intégrante (en virgule flottante) sont stockées dans l'objet pointé par iptr
.Original:
Decomposes given floating point value
x
into integral and fractional parts, each having the same type and sign as x
. The integral part (in floating-point format) is stored in the object pointed to by iptr
.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
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. |
iptr | - | pointeur sur valeur du point flottant pour stocker la partie intégrante de la Original: pointer to floating point value to store the integral part to 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
La partie fractionnaire de
x
avec le même signe que x
. La partie intégrante est placée dans la valeur pointée par iptr
.Original:
The fractional part of
x
with the same sign as x
. The integral part is put into the value pointed to by iptr
.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[modifier]Exemple
This section is incomplete Reason: no example |
[modifier]Voir aussi
(C99) | entier le plus proche n'est pas supérieure en grandeur à la valeur donnée Original: nearest integer not greater in magnitude than the given value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) |
C++ documentation for modf |