• Kursy
  • Kompilator kodu
  • Dyskusja
  • Cennik
  • Zespoły
Menu
0

How can I round floats in c++?

I need help founding a way to round floats (float2int)

c++code
24th Feb 2020, 1:31 AM
Gabriel Martins
Gabriel Martins - avatar
3 odpowiedzi
+ 2
here is a float y rounded https://code.sololearn.com/czUg7uEB64Nb/?ref=app
24th Feb 2020, 2:43 AM
BroFar
BroFar - avatar
+ 1
Have a look here and hope it helps https://www.geeksforgeeks.org/rounding-floating-point-number-two-decimal-places-c-c/
24th Feb 2020, 1:48 AM
Rabinski
Rabinski - avatar

Często masz takie pytania?

Ucz się bardziej efektywnie, za darmo:

  • Wprowadzenie do Pythona

    7.1M uczących się

  • Wprowadzenie do Java

    4.7M uczących się

  • Wprowadzenie do C

    1.5M uczących się

  • Wprowadzenie do HTML

    7.5M uczących się

Zobacz wszystkie kursy
Popularne dzisiaj
Does sololearn teaches on how to create games
0 Votes
Excuse me, why do they always ask us to input without telling us what it is for in python.
2 Votes
Quiz
0 Votes
Sockets, etc
0 Votes
I HAVE A PROBLEM I CANNOT ABLE TO SEND MESSAGE ANYONE AND ALSO MY MESSAGE SECTION NOT AVAILABLE "PLEASE ACTIVATE YOUR ACCOUNT
0 Votes
Any Sololearn Chat Groups that I could Join?
0 Votes
Necesitó ayuda
1 Votes
can't understand an error
0 Votes
Table tags on html
0 Votes
Loop
0 Votes