Skip to content

Trimming zeroes in BigInteger #60563

Discussion options

You must be logged in to vote

Thanks for the consideration here @sakno.

I think its best if we hold off on this change at the moment. I'm currently looking at a more general refactoring/potential rewrite of BigInteger to just store and do everything as two's complement directly.

This refactoring is being considered for many reasons, including that most of the current bugs stem from it being (since the original implementation from 2010) stored as sign + magnitude. The current approach also leads to other problems, such as the implementation being overall less performant (which prevented its usage for floating-point parsing/formatting and is why we have a separate: https://source.dot.net/#System.Private.CoreLib/Number.B…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sakno
Comment options

Answer selected by sakno
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants