Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 App Store 上有一款游戏,我收到报告说分数准确且报告不正确。我几乎所有的数学都使用了 long long。不幸的是,在大约 20 亿时,我的数学开始失败,因为分数变得太大了。
是否有解决数据类型大小限制的标准方法?如何?
unsigned long long 的范围为 0-18,446,744,073,709,551,615。如果你只是在那里做整数数学,你不应该遇到数据类型限制。