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.
我正在尝试找到一些可以从任何基础转换为任何其他基础的函数。
在Java中,我使用BigInteger了它,它允许我在预定义的基数中接收一个数字,如下所示:.nextBigInteger(radix)然后将其转换为任何其他基数.ToString(radix)。
Java
BigInteger
.nextBigInteger(radix)
.ToString(radix)
我正在尝试在 中做同样的事情C#,但问题BigInteger不是旨在获取数字的基数。还有其他方法吗?
C#