Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

1990 py int to string fix#1991

Closed
rmadsen-ks wants to merge 3 commits intopythonnet:masterfrom
rmadsen-ks:1990-PyIntToStringFix
Closed

1990 py int to string fix#1991
rmadsen-ks wants to merge 3 commits intopythonnet:masterfrom
rmadsen-ks:1990-PyIntToStringFix

Conversation

@rmadsen-ks
Copy link
Contributor

Thisfixes#1990: PyInt.ToString() has wrong results for values between 128 and 255

Check all those that are applicable and complete.

  • Make sure to include one or more tests for your change
  • If an enhancement PR, please create docs and at best an example
  • Ensure you have signed the.NET Foundation CLA
  • Add yourself toAUTHORS
  • Updated theCHANGELOG

Added a unit test to show a problem with String.Format / PyInt.ToString()
There was an issue with values between 128 and 256, possibly because of some bug inside BigInteger, which I did not fully understand.Anyway, it seems that a simpler solution is to just use LongInteger when possible.
@lostmsu
Copy link
Member

It looks like the issue is actually inToBigInteger?

@lostmsu
Copy link
Member

Superseded by#1993

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

PyInt.ToString returns wrong strings for values between 128 and 256

2 participants

@rmadsen-ks@lostmsu

[8]ページ先頭

©2009-2026 Movatter.jp