bigint 表示的最大值 [英] max value represented by bigint

查看:33
本文介绍了bigint 表示的最大值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法获得可以存储在 bigint 中的最大值,而无需对其进行硬编码?

Is there a way to get the max value that can be stored in a bigint, without hardcoding it?

是否有返回/包含此值的函数或常量?

Is there a function or a constant that returns/contains this value?

推荐答案

查看 这个类似的问题.据我所知,没有办法以编程方式找到您正在寻找的答案.

See the answer provided in this similar question. There is no way, as far as I know, to programmatically find the answer you're looking for.

根据您在另一个答案上发表的评论,这将允许您只需要在一个地方更改您的值,而不是在多个地方.

Based on the comments you posted on another answer, this would allow you to only have to change your values in one place, as opposed to multiple places.

这篇关于bigint 表示的最大值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆