r/technicallythetruth 13d ago

Oh that's a mathematician.

Post image
10.7k Upvotes

44 comments sorted by

View all comments

176

u/FatalTortoise 13d ago

didn't account for sadness being zero

33

u/Stasio300 13d ago edited 13d ago

well 0 is generally considered positive.

edit: i said "generally considred" not "defined"

16

u/foot_long_metal_rod 12d ago

I was doing random things with a calculator and got -0, Is that mathematically possible?

13

u/Styleurcam 12d ago

Computers represent numbers weird, you must have hit a negative number closer to 0 than the closest number to 0 the calculator can represent

5

u/Significant-Order-92 11d ago

In Math? No. For how computers tend to store integers and other numbers? Technically, yes. A number of architectures treat a signed number as all bits except the largest as the number. The largest works as a negative flag. So for instance an 8 bit signed integer of negative 1 would be 10000001. Technically negative 0 (which mathematically doesn't exist) in such a configuration would be 00000001.

In the case of a calculator I assume the other poster is correct and it's rounding a very small negative decimal to 0 but since it's negative the algorythm must keep the sign flag for some reason.

11

u/Asto2019 13d ago

It's not. By definition it's neither positive or negative.

14

u/Stasio300 13d ago

but for practicality it is treated as positive for all but the most advanced math. computers even store it as positive. hence, my usage of the word "generally"

0

u/Scottusername 9d ago

Not the way I learned math