Skip to content

Invalid comparison of long numbers #7

@ltetak

Description

@ltetak

There is a problem when comparing small and big numbers. GetNumber returns ulong for small numbers and BigInteger for really big numbers. But these two types do not play along nicely so if you compare one with the the other it will crash here

var compareResult = xNum.CompareTo(yNum);

One solution could be to unify these two types (convert to BigInteger) before comparing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions