Fix overflow check for parsing format strings#72647
Conversation
|
Tagging subscribers to this area: @dotnet/area-system-numerics Issue DetailsFixes #67891 Limiting the precision to int.MaxValue ended up causing issues, so we are going to limit to Do we need to update this article, or any other documentation? https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
|
Yes, we should submit PRs to update the docs appropriately. |
|
Does need to be updated, too? |
|
@stephentoub yes, and probably this too https://source.dot.net/#System.Runtime.Numerics/System/Numerics/BigNumber.cs,858. I'll bundle those in. |
|
Added When you commit this breaking change:
Tagging @dotnet/compat for awareness of the breaking change. |
Fixes #67891
Limiting the precision to int.MaxValue ended up causing issues, so we are going to limit to
999_999_999(9 digits) instead. As discussed in the above issue, that should be more than enough precision for every type we support and plan to support.Do we need to update this article, or any other documentation? https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings