• Cursos
  • Compilador de Código
  • Debatir
  • Precios
  • Teams
Menu
+ 1

It's output is not equal... How's that?

float f1 = 0.1; if (f1 == 0.1) printf("Equal\n"); else printf("Not equal\n");

c++c
26th May 2019, 3:51 PM
Shubham Tandale
Shubham Tandale - avatar
1 Respuesta
+ 2
You're comparing a float and a double https://www.sololearn.com/Discuss/1477626/?ref=app
26th May 2019, 4:00 PM
Anna
Anna - avatar

¿Tienes a menudo preguntas como esta?

Aprende gratis de forma más eficaz

  • Introducción a Python

    7,1M de estudiantes

  • Introducción a Java

    4,7M de estudiantes

  • Introducción a C

    1,5M de estudiantes

  • Introducción a HTML

    7,5M de estudiantes

Ver todos los cursos
En tendencia hoy
How i learn it I feel bhai it's tough some one help me 😐
0 Votes
Please recommend me
0 Votes
chat I wanna make a bullet hell game what language(s) do I need to know?
0 Votes
Can i code here? Or just learn?
0 Votes
hi i want to learn C# but i don't have a good tut
1 Votes
Hi, please I'm interested in learning Html, css and Javascript. I need a guidance or any app recommendation that will make me
0 Votes
how to make sans fight on web language
1 Votes
It's app not running properly?
1 Votes
Learn tkinter
1 Votes
Why Lazy?
1 Votes