- Notifications
You must be signed in to change notification settings - Fork 67
Open
Description
Line 214 in 0775592
| self.mantissa.wrapping_mul(power) == other.mantissa |
When either the mantissa or the exponent is too large, the multiplication used before comparison wraps which may result both in true positive and true negative result.
This could be solved with checked_mul() - error from this method means that the number with larger exponent (i.e. whose mantissa is multiplied) must be larger (i.e. not equal) than the one with smaller exponent.
Metadata
Metadata
Assignees
Labels
No labels