div, ldiv, lldiv

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

 
 
 
Comuni funzioni matematiche
Funzioni
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Operazioni di 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.
abs
labs
llabs
imaxabs



(C99)
fabs
div
ldiv
lldiv
imaxdiv



(C99)
fmod
remainder(C99)
remquo(C99)
fma(C99)
fmax(C99)
fmin(C99)
fdim(C99)
nan
nanf
nanl
(C99)
(C99)
(C99)
Funzioni esponenziali
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)
Funzioni di risparmio energia
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.
Funzioni trigonometriche e iperboliche
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.
Errore e gamma funzioni
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)
Più vicini operazioni di interi in virgola mobile
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.
trunc(C99)
nearbyint(C99)
rint
lrint
llrint
(C99)
(C99)
(C99)
Floating funzioni di manipolazione di punti
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)
Classificazione
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 costanti
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.
 
Elemento definito nell'header <stdlib.h>
div_t     div(int x, int y );
ldiv_t    ldiv(long x, long y );
lldiv_t   lldiv(longlong x, longlong y );
Elemento definito nell'header <inttypes.h>
imaxdiv_t imaxdiv(intmax_t x, intmax_t y );
Calcola il quoziente (il risultato del x/y espressione) e restante (il risultato del x%y espressione) simultaneamente. (dal C99)
Original:
Computes the quotient (the result of the expression x/y) and remainder (the result of the expression x%y) simultaneously. (dal C99)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Calcola quoziente e resto contemporaneamente. Il quoziente è il quoziente algebrica con qualsiasi parte frazionaria scartata (troncato a zero). Il resto è tale che quot * y + rem == x. (fino al C99)
Original:
Computes quotient and remainder simultaneously. The quotient is the algebraic quotient with any fractional part discarded (truncated towards zero). The remainder is such that quot * y + rem == x. (fino al C99)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Indice

[modifica]Note

Fino al C99, la direzione arrotondamento del quoziente e il segno del resto nelle built-in operatori di divisione e il resto è stato definito dall'implementazione se uno degli operandi è stato negativo, ma è stato ben definito in div e ldiv.
Original:
Until C99, the rounding direction of the quotient and the sign of the remainder in the built-in division and remainder operators was implementation-defined if either of the operands was negative, but it was well-defined in div and ldiv.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[modifica]Parametri

x, y -
valori interi
Original:
integer values
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

Struttura di tipo div_t, ldiv_t, ldiv_t, imaxdiv_t definita come:
Original:
Structure of type div_t, ldiv_t, ldiv_t, imaxdiv_t defined as:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
struct div_t {int quot;// The quotientint rem;// The remainder};   struct ldiv_t {long quot;// The quotientlong rem;// The remainder};   struct lldiv_t {longlong quot;// The quotientlonglong rem;// The remainder};   struct imaxdiv_t { std::intmax_t quot;// The quotient std::intmax_t rem;// The remainder};

[modifica]Vedi anche

resto dell'operazione divisione floating point
Original:
remainder of the floating point division operation
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione)[modifica]
C++ documentation for div
close