Problema C++?

Ciao a tutti, vorrei che un numero contenuto in una variabile double si approsimi a un numero intero e venga quindi memorizzato in una variabile di tipo intero. Come faccio ad approssimare? Per esempio se nel double è contenuto il valore 10,39 vorrei che diventasse un intero di valore 10. Grazie in anticipo

Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Helpful Social

Copyright © 2024 QUIZLS.COM - All rights reserved.