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
what is the optimal way to convert from types like BigInt , BigUint , Complex64 to each other ? i tried doing it by using str as a interface (converting to string then converting to the target type) but i'm wondering if there is a better way to do this ?
The text was updated successfully, but these errors were encountered:
The question you'll have to answer for yourself is what to do with a Complex imaginary part. But if that's zero, you can use other conversions like ToPrimitive and FromPrimitive to convert to/from the real part of Complex.
what is the optimal way to convert from types like BigInt , BigUint , Complex64 to each other ? i tried doing it by using
str
as a interface (converting to string then converting to the target type) but i'm wondering if there is a better way to do this ?The text was updated successfully, but these errors were encountered: