Skip to content

Release 3.0.1

Latest

Choose a tag to compare

@objecthub objecthub released this 25 Nov 16:46
  • Fixed a runtime trap in Rational.rationalWithOverflow (and thus Rational(_:_:), parsing, and the ...ReportingOverflow operations) for numerators equal to T.min, e.g. Rational<Int64>(Int64.min, 3)
  • Rational.rationalWithOverflow now reports overflow only if the result is not representable; Int64.min/3 is returned exactly without overflow
  • Rational: gcdReportingOverflow and lcmReportingOverflow no longer drop overflows that happen while normalizing the result
  • Added regression tests, including exhaustive checks of Int8 rationals against a BigInt oracle