• Corsi
  • Compilatore di codice
  • Discuti
  • Prezzi
  • Squadre
Menu
0

How can I round float to nearest int?

float c=6.19; I need to get 7

c++c
1st Dec 2020, 12:13 PM
Bibek Pant
Bibek Pant - avatar
2 Risposte
+ 1
Martin Taylor thanks for references, I figured what I was doing wrong !
1st Dec 2020, 1:37 PM
Bibek Pant
Bibek Pant - avatar

Hai spesso domande come questa?

Impara in modo più efficiente, gratuitamente:

  • Introduzione a Python

    7,1M studenti

  • Introduzione a Java

    4,7M studenti

  • Introduzione a C

    1,5M studenti

  • Introduzione a HTML

    7,5M studenti

Vedi tutti i corsi
Popolare oggi
How many time I can use sololearn trial mode?
2 Votes
Ошибка в приложении Sololearn
1 Votes
Is anyone else experiencing this Sololearn issue?
0 Votes
NEO V2.0
1 Votes
Did sololearn helped you to get easier a job?
1 Votes
Sololearn course
1 Votes
solo learn program issue - iPhone?
1 Votes
Is it possible to write Rust code that is as compact and expressive as Python?
0 Votes
Bug sur le deuxième cours de python
1 Votes
I am learning javascript intrmdt but when I play a code challenge. The app is givin me comlecated questions with less time.why?
0 Votes