- 博客(3)
- 收藏
- 关注
原创 lua number & protobuf int32 int64 repeated issue: Value out of range
大家知道 LUA里面只有number 类型,那么number类型的范围是多少呢:[-math.pow(2, 1023) , math.pow(2, 1023)]那么精确的整型表达又是多少呢:math.pow(2, 53)答案在这:http://lua-users.org/wiki/NumbersTutorialProtobuf int 的类型有int32、int64protobuf int32的取值范围是math.pow(2, 31) = 2147483648protobuf int64的
2023-04-23 17:29:06 216 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人