-51
submitted 2 days ago by [email protected] to c/[email protected]

Have you performed simple arithmetic operations like 0.1 + 0.2? You might have gotten something strange: 0.1 + 0.2 = 0.30000000000000004.

you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 9 points 2 days ago

Ugh, i thought this was a question, not a link. So i spent time googling for a good tutorial on floats (because I didn't click the link)....

Now i hate myself, and this post.

[-] [email protected] 5 points 2 days ago

Don't hate yourself. At least you searched it properly. See it this way, you learned from a failure more than anyone who did not fail. You are now stronger!

[-] [email protected] 2 points 1 day ago

assuming i learned, lol :D

this post was submitted on 25 Sep 2024
-51 points (8.2% liked)

Programming

17071 readers
384 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 1 year ago
MODERATORS