It's output is not equal... How's that? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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");

26th May 2019, 3:51 PM
Shubham Tandale
Shubham Tandale - avatar
1 Answer
+ 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