Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add: add more Biginteger methods #840

Merged
merged 10 commits into from
Dec 19, 2023
Merged

Conversation

Jim8y
Copy link
Contributor

@Jim8y Jim8y commented Dec 18, 2023

This pr adds more BigInteger methods:

  • Add
  • Subtract
  • Multiply
  • Divide
  • Negate
  • Remainder
  • Compare

Methods check list:

  • BigInteger.Add(BigInteger, BigInteger)
  • BigInteger.Compare(BigInteger, BigInteger)
  • BigInteger.Divide(BigInteger, BigInteger)
  • BigInteger.DivRem(BigInteger, BigInteger, out BigInteger)
  • BigInteger.Equals(object)
  • BigInteger.Equals(BigInteger)
  • BigInteger.Explicit(BigInteger to byte)
  • BigInteger.Explicit(BigInteger to decimal)
  • BigInteger.Explicit(BigInteger to double)
  • BigInteger.Explicit(BigInteger to short)
  • BigInteger.Explicit(BigInteger to int)
  • BigInteger.Explicit(BigInteger to long)
  • BigInteger.Explicit(BigInteger to sbyte)
  • BigInteger.Explicit(BigInteger to float)
  • BigInteger.Explicit(BigInteger to ushort)
  • BigInteger.Explicit(BigInteger to uint)
  • BigInteger.Explicit(BigInteger to ulong)
  • BigInteger.GreatestCommonDivisor(BigInteger, BigInteger)
  • BigInteger.GetHashCode()
  • BigInteger.GetType()
  • BigInteger.Implicit(byte to BigInteger)
  • BigInteger.Implicit(decimal to BigInteger)
  • BigInteger.Implicit(double to BigInteger)
  • BigInteger.Implicit(short to BigInteger)
  • BigInteger.Implicit(int to BigInteger)
  • BigInteger.Implicit(long to BigInteger)
  • BigInteger.Implicit(sbyte to BigInteger)
  • BigInteger.Implicit(float to BigInteger)
  • BigInteger.Implicit(ushort to BigInteger)
  • BigInteger.Implicit(uint to BigInteger)
  • BigInteger.Implicit(ulong to BigInteger)
  • BigInteger.Max(BigInteger, BigInteger)
  • BigInteger.Min(BigInteger, BigInteger)
  • BigInteger.ModPow(BigInteger, BigInteger, BigInteger)
  • BigInteger.Multiply(BigInteger, BigInteger)
  • BigInteger.Negate(BigInteger)
  • BigInteger.OnesComplement(BigInteger)
  • BigInteger.Parse(string)
  • BigInteger.Parse(string, IFormatProvider)
  • BigInteger.Parse(string, NumberStyles)
  • BigInteger.Parse(string, NumberStyles, IFormatProvider)
  • BigInteger.Pow(BigInteger, int)
  • BigInteger.Remainder(BigInteger, BigInteger)
  • BigInteger.Subtract(BigInteger, BigInteger)
  • BigInteger.ToString()
  • BigInteger.ToString(IFormatProvider)
  • BigInteger.ToString(string)
  • BigInteger.ToString(string, IFormatProvider)
  • BigInteger.TryParse(string, out BigInteger)
  • BigInteger.TryParse(string, NumberStyles, IFormatProvider, out BigInteger)

@Jim8y Jim8y requested a review from shargon December 18, 2023 11:50
shargon and others added 5 commits December 18, 2023 11:15
…ck-dotnet into biginteger-methods

* 'biginteger-methods' of github.com:Liaojinghui/neo-devpack-dotnet:
  Update tests/Neo.Compiler.CSharp.UnitTests/UnitTest_BigInteger.cs
  Update tests/Neo.Compiler.CSharp.UnitTests/UnitTest_BigInteger.cs
  Update tests/Neo.Compiler.CSharp.UnitTests/UnitTest_BigInteger.cs
  Apply suggestions from code review
@shargon shargon merged commit e51c648 into neo-project:master Dec 19, 2023
2 checks passed
Jim8y added a commit to Jim8y/neo-devpack-dotnet that referenced this pull request Dec 19, 2023
…ck-dotnet into storagebacked-name

* 'storagebacked-name' of github.com:Liaojinghui/neo-devpack-dotnet:
  Add: add more Biginteger methods (neo-project#840)
Jim8y added a commit to Jim8y/neo-devpack-dotnet that referenced this pull request Dec 19, 2023
…into math.pow

* 'math.pow' of github.com:Liaojinghui/neo-devpack-dotnet:
  Add: add more Biginteger methods (neo-project#840)
@Jim8y Jim8y deleted the biginteger-methods branch September 18, 2024 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants