Fondamenti di Informatica Librerie di funzioni - Robotica
Fondamenti di Informatica Librerie di funzioni - Robotica
Fondamenti di Informatica Librerie di funzioni - Robotica
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
La libreria matematica<br />
arrotondamento<br />
• double fmod(double x, double y): calcola il modulo x/y<br />
• double ceil(double x): restituisce il piu’ piccolo intero<br />
non minore <strong>di</strong> x<br />
• double floor(double x): restituisce il piu’ grande intero<br />
non maggiore <strong>di</strong> x<br />
• double fabs(double x): restituisce il valore assoluto <strong>di</strong> x<br />
• double round(double x): arrotonda x all’intero piu’ vicino<br />
Tullio Facchinetti <strong>Fondamenti</strong> <strong>di</strong> <strong>Informatica</strong> <strong>Librerie</strong> <strong>di</strong> <strong>funzioni</strong>