this post was submitted on 27 Nov 2023
676 points (96.3% liked)

Skeptic

1291 readers
9 users here now

A community for Scientific Skepticism:

Scientific skepticism or rational skepticism, sometimes referred to as skeptical inquiry, is a position in which one questions the veracity of claims lacking empirical evidence.

Do not confuse this with General Skepticism, Philosophical Skepticism, or Denialism.

Things we like:

Things we don't like:

Other communities of interest:

"A wise man proportions his belief to the evidence." -David Hume

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 35 points 11 months ago (4 children)

2+2=5

Don't take my word for it research about it yourself there are lots of good videos on YouTube the government and science liars don't want you to know the truth /s

[–] [email protected] 18 points 11 months ago (1 children)

2+2=5

For extrem values of 2.

[–] [email protected] 16 points 11 months ago (2 children)

For those confused

2.25+2.25=4.5 rounds to 2+2=5

2.5+2.5=5 truncates to 2+2=5

Both can crop up in programming, depending on the situation.

[–] [email protected] 3 points 11 months ago (1 children)

2.25 + 2.25 = 4.5

If you add two floats together then the output is a float, if you add an int and a float together the output is a float. Computers will always perform the calculation as is, unless you explicitly tell them to perform a rounding operation.

[–] [email protected] 6 points 11 months ago

However, if you stuff them into an int at the last minute, you can get that effect.

Under the hood, it's floats. On the output, it's ints.

It's obvious and silly with small examples. The problem can creep in when you are using larger libraries or frameworks.

[–] [email protected] 0 points 11 months ago

A few months back I had a floating point that had a single 1 like 16 digits past the decimal place and I couldn't get rid of it.

[–] [email protected] 8 points 11 months ago

Remember when Terrance Howard tried to explain how 1x1=2 because bird people from Atlantis tricked us? Good times.

[–] [email protected] 4 points 11 months ago

There are four lights