java Operator ‘/‘ cannot be applied to ‘java.math.BigInteger‘, ‘int‘

Posted 软件工程小施同学

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了java Operator ‘/‘ cannot be applied to ‘java.math.BigInteger‘, ‘int‘相关的知识,希望对你有一定的参考价值。

Operator '/' cannot be applied to 'java.math.BigInteger', 'int'

这是因为BigInteger不能直接做数学运算,需要先转为int

BigInter a = 1;

int b = a.intValue();

以上是关于java Operator ‘/‘ cannot be applied to ‘java.math.BigInteger‘, ‘int‘的主要内容,如果未能解决你的问题,请参考以下文章

JavaScript 程序错误:Cannot use 'in' operator to search

codeigniter Uncaught TypeError: Cannot use 'in' operator to search 'length' in When theres additiona

jQuery UI Autocomplete JSON 给出错误:Uncaught TypeError: Cannot use 'in' operator to search '62' in

jquery each报 Uncaught TypeError: Cannot use 'in' operator to search for错误

Taro+react开发(32) Please use the ‘new‘ operator, this DOM object constructor cannot be called as a fu

无法从数组中获取相关值,出现 Uncaught TypeError "Cannot use 'in' operator to search 'length"