• @kadu
    link
    English
    201 year ago

    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.

  • @[email protected]
    link
    fedilink
    English
    111 year ago

    That’s the lowest a 32-bit signed integer can go, so probably an overflow error:

    (2^32)÷2 = 2,147,483,648

    • @keenkoon
      link
      English
      3
      edit-2
      1 year ago

      deleted by creator

    • Cethin
      link
      fedilink
      English
      11 year ago

      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.

  • AnIDFB
    link
    fedilink
    English
    51 year ago

    Your battery’s so good that the capacity integer overflowed.