• Kurse
  • Code Compiler
  • Diskutieren
  • Preise
  • Teams
Menu
+ 1

Can anybody please explain me why the result of 2.05 - 0.05 isn't 2?

https://code.sololearn.com/c31mxWyEkjK6/?ref=app

javaoutputcode
27th Jul 2017, 3:51 PM
Jnny
3 Antworten
+ 11
Please refer: https://stackoverflow.com/questions/588004/is-floating-point-math-broken
27th Jul 2017, 4:04 PM
Hatsy Rei
Hatsy Rei - avatar
+ 2
Thanks to @Hatsy Rei's link, I found a simpler but inaccurate explanation: http://floating-point-gui.de/basic/
27th Jul 2017, 4:13 PM
Jnny

Häufig solche Fragen?

Effizienter lernen, kostenlos:

  • Einführung in Python

    7.1M Lernende

  • Einführung in Java

    4.7M Lernende

  • Einführung in C

    1.5M Lernende

  • Einführung in HTML

    7.5M Lernende

Alle Kurse anzeigen
Heute heiß
My codebits section is full of deleted codes
12 Votes
Why so many mathematical questions in challenges?
0 Votes
Where did mess up....
1 Votes
Ai generated practices
1 Votes
I have an error in a problem and I don't know what the correct answer is
1 Votes
Feedback on my portfolio
0 Votes
I need a siren sound
0 Votes
Yo this is madness
0 Votes
best language if i want to learn about AI
0 Votes
How can i insert files?
1 Votes