扫码关注官方订阅号
問題不在BigInt, 是右邊那個字面量無法求值.
scala> 1881676371789154860897069000 <console>:1: error: integer number too large 1881676371789154860897069000
BigInt可以用字符串初始化
scala> BigInt("12345667890087234578023089723457234705892375071881676371789154860897069000") res0: scala.math.BigInt = 12345667890087234578023089723457234705892375071881676371789154860897069000
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
問題不在BigInt, 是右邊那個字面量無法求值.
BigInt可以用字符串初始化