• @lysdexic
    link
    English
    3311 months ago

    Also, double can and does in fact represent integers exactly.

    • @[email protected]
      link
      fedilink
      2011 months ago

      Only to 2^54. The amount of integers representable by a long is more. But it can and does represent every int value correctly

        • voxel
          link
          fedilink
          3
          edit-2
          10 months ago

          you should never be using these types in c anyway, (u?)int(8/16/32/64)_t are way more sane