Int128 in .Net?

后端 未结 8 1015
北海茫月
北海茫月 2020-12-01 09:53

I need to do some large integer math. Are there any classes or structs out there that represent a 128-bit integer and implement all of the usual operators?

BTW, I r

8条回答
  •  北海茫月
    2020-12-01 10:58

    If you don't mind making reference to the J# library (vjslib.dll included with VS by default) there is already and implementation of BigInteger in .NET

    using java.math;
    
    public static void Main(){
        BigInteger biggy = new BigInteger(....)
    
    }
    

提交回复
热议问题