24位整数

Fra*_*ier 6 c# biginteger

要检查一些银行帐号我想在帐号上做模97.但是很多帐号都要在UInt64中输入.

如何对24位整数进行操作?

谢谢,

示例代码(无法转换):

(Convert.ToUInt64("756842356987456214536254") % 97 == 1);
Run Code Online (Sandbox Code Playgroud)

Mit*_*eat 9

一种方法是使用System.Numeric's BigInteger:

BigInteger bi = BigInteger.Parse("756842356987456214536254");
Run Code Online (Sandbox Code Playgroud)