美文网首页
Go中的整数类型

Go中的整数类型

作者: 太公赢 | 来源:发表于2018-12-02 08:33 被阅读0次
    Type Range Storage
    int8 –128 to 127 8-bit (one byte)
    uint8 0 to 255 8-bit (one byte)
    int16 –32,768 to 32,767 16-bit (two bytes)
    uint16 0 to 65535 16-bit (two bytes)
    int32 –2,147,483,648 to 2,147,483,647 32-bit (four bytes)
    uint32 0 to 4,294,967,295 32-bit (four bytes)
    int64 –9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 64-bit (eight bytes)
    uint64 0 to 18,446,744,073,709,551,615 64-bit (eight bytes)

    相关文章

      网友评论

          本文标题:Go中的整数类型

          本文链接:https://www.haomeiwen.com/subject/zwndcqtx.html