How big can a 64bit signed integer be?

后端 未结 3 349
悲哀的现实
悲哀的现实 2020-12-29 21:03

In redis,

The range of values supported by HINCRBY is limited to 64 bit signed integers.

And I\'d like to know how big can t

3条回答
  •  生来不讨喜
    2020-12-29 21:40

    A signed integer ranges from size −2^(n−1) through 2^(n−1) − 1 so in this case the maximum value would be 2 ^ 63 - 1 or 9,223,372,036,854,775,807

提交回复
热议问题