You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today 'R'/'r' aren't supported with integral types but are with floating point, and 'X'/'x' aren't supported with floating point but are with integral types. Related to both #65634 and the generic math support, where INumber<T> inherits ISpanFormattable and thus we should expect format specifiers to be used with arbitrary numerical types, we should allow all of these specifiers to be used, regardless of integer vs floating point. 'R'/'r' for integers can just be treated as 'G'/'g', respectively, and 'X'/'x' for floating point is covered by #1630.
Tagging subscribers to this area: @dotnet/area-system-numerics
See info in area-owners.md if you want to be subscribed.
Issue Details
Today 'R'/'r' aren't supported with integral types but are with floating point, and 'X'/'x' aren't supported with floating point but are with integral types. Related to both #65634 and the generic math support, where INumber<T> inherits ISpanFormattable and thus we should expect format specifiers to be used with arbitrary numerical types, we should allow all of these specifiers to be used, regardless of integer vs floating point. 'R'/'r' for integers can just be treated as 'G'/'g', respectively, and 'X'/'x' for floating point is covered by #1630.
Today 'R'/'r' aren't supported with integral types but are with floating point, and 'X'/'x' aren't supported with floating point but are with integral types. Related to both #65634 and the generic math support, where
INumber<T>
inheritsISpanFormattable
and thus we should expect format specifiers to be used with arbitrary numerical types, we should allow all of these specifiers to be used, regardless of integer vs floating point. 'R'/'r' for integers can just be treated as 'G'/'g', respectively, and 'X'/'x' for floating point is covered by #1630.(Discussed in API review on 4/5/2022.)
cc: @tannergooding
The text was updated successfully, but these errors were encountered: