It could be an overflow, or it could have set it to that value if something unexpected happens. Ints aren't nullable (in most languages), so returning some fixed but never occurring value is useful. The fact that it is exactly that value makes me suspect that's the case, not overflow.
11 Comments
kadu@lemmy.world · 21 pts · 3y
Sorry, your battery is only got one singular electron left now.
And we are not quite sure where it is or how fast it's moving.
vox@sopuli.xyz · 1 pts · 2y
your battery is orange
Drekzak@lemm.ee · 11 pts · 3y
That's the lowest a 32-bit signed integer can go, so probably an overflow error:
(2^32)÷2 = 2,147,483,648
keenkoon@lemmy.world · 3 pts · 3y
BlovedMadman@lemmy.world · 3 pts · 3y
Haha, Same!
branch⅞(4.13) = ∆
Cethin@lemmy.zip · 1 pts · 3y
It could be an overflow, or it could have set it to that value if something unexpected happens. Ints aren't nullable (in most languages), so returning some fixed but never occurring value is useful. The fact that it is exactly that value makes me suspect that's the case, not overflow.
BitterSweet@discuss.tchncs.de · 8 pts · 3y
Try putting new AA batteries.
anidfb@lemm.ee · 5 pts · 3y
Your battery's so good that the capacity integer overflowed.
Lucidlethargy@sh.itjust.works · 5 pts · 3y
Turn it off! Your draining our batteries!
Inglan@lemmy.world · 4 pts · 3y
Much better
TheFrirish@jlai.lu · 4 pts · 2y
Battery is sucking your life energy now
TheCheddarCheese@lemmy.world · 3 pts · 3y
i guess you better replace it