Int128 in .Net?

后端 未结 8 973
北海茫月
北海茫月 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:57

    No, there's nothing in .NET <= 3.5. I'm hoping/expecting that BigInteger will make its return in .NET 4.0. (It was cut from .NET 3.5.)

    0 讨论(0)
  • 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(....)
    
    }
    
    0 讨论(0)
提交回复
热议问题