On Thu, Jul 12, 2018 at 5:20 AM Daniel Moisset firstname.lastname@example.org wrote:
(I don't have a good name): something telling that an integer can be represented exactly as a float
One might also ask that question of e.g. decimal.Decimal, fractions.Fraction, so maybe it's better as a method or somewhere else.
(Is this any different than float(x).as_integer_ratio() == (x.numerator, x.denominator) for ints/fractions?)