docs icon indicating copy to clipboard operation
docs copied to clipboard

Add note on BigInteger bin/hex formatting of positive values

Open SolalPirelli opened this issue 6 months ago • 0 comments

Summary

Fixes dotnet/runtime#115618.

It's somewhat unexpected that "print 3 with 2 binary digits" returns a string of length 3 ("011"), but also makes sense given the round-trip requirement and the historical context of not using - for negative bin/hex numbers.

I think documenting this behavior would be useful.


Internal previews

📄 File 🔗 Preview link
docs/standard/base-types/standard-numeric-format-strings.md Standard numeric format strings

SolalPirelli avatar May 29 '25 07:05 SolalPirelli