• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
+ 1

I have quick question

Why are these outputs different? Even calculator results are the same. https://code.sololearn.com/cB8JAP57GGrz/?ref=app

kotlin
8th Aug 2021, 3:57 PM
Zuziss
Zuziss - avatar
2 Answers
+ 8
The following threads touch on why calculation involving floating point values may not be accurate in programming. https://www.sololearn.com/Discuss/1477626/?ref=app https://www.sololearn.com/Discuss/2786499/?ref=app https://www.sololearn.com/Discuss/2849927/?ref=app
8th Aug 2021, 4:14 PM
Hatsy Rei
Hatsy Rei - avatar
+ 1
Hatsy Rei Thank you
8th Aug 2021, 4:27 PM
Zuziss
Zuziss - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Where make_unique is better than unique_ptr(raw pointer)
0 Votes
Best way to learn a new programming language fast?
1 Votes
Can someone help and explain better on slicing
1 Votes
Will i land a job
1 Votes
Course
1 Votes
Why we use oops in python rather than any function ?
1 Votes
Why we use return in function ?
0 Votes
someone helps how can i make two for loops over a 2d array in c ( i didn't learned pointers yet )
0 Votes
Leap year check
0 Votes
why is my leaderboard diferent than my brothers
0 Votes