modf
Da cppreference.com.
![]() | Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate. La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
Elemento definito nell'header <math.h> | ||
float modff(float x, float* iptr ); | ||
double modf(double x, double* iptr ); | ||
longdouble modfl(longdouble x, longdouble* iptr ); | ||
Si decompone in virgola mobile
x
valore del punto in parti integrali e frazionarie, ciascuno con lo stesso tipo e segno come x
. La parte integrale (in formato di virgola mobile) viene memorizzato nell'oggetto puntato da 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.
Indice |
[modifica]Parametri
arg | - | valore in virgola mobile 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 | - | puntatore al valore in virgola mobile per memorizzare la parte integrante 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. |
[modifica]Valore di ritorno
La parte frazionaria del
x
con lo stesso segno x
. La parte integrale viene messa in valore puntato da 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.
[modifica]Esempio
This section is incomplete Reason: no example |
[modifica]Vedi anche
(C99) | intera più vicina non superiore in grandezza rispetto al valore dato 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. (funzione) |
C++ documentation for modf |