Int multiplication methods producing value in larger type #73523
-
Is there or will there be a general way in the generic maths to allow us to multiply the value and get the result in a larger type, e.g. multiply two Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@dotnet/area-system-numerics |
Beta Was this translation helpful? Give feedback.
-
I don't think its something that will very feasible to expose at this time as without something like "Associated Types", the closest we could get is something like This then has some potentially questionable semantics with regards to non-fixed width types like |
Beta Was this translation helpful? Give feedback.
I don't think its something that will very feasible to expose at this time as without something like "Associated Types", the closest we could get is something like
(T Lower, T Upper) BigMul(T left, T right)
.This then has some potentially questionable semantics with regards to non-fixed width types like
BigInteger
and may be difficult to use in contexts where you don't know the actual underlying type.