SE-0225 added isMultiple(of:)
to BinaryInteger
. I'm wondering if this change could be made more complete by discussing eg the following.
-
Should
isMultiple(of:)
also be added toBinaryFloatingPoint
? -
Should
isPower(of:)
be added toBinaryInteger
andBinaryFloatingPoint
?
(Related discussion) -
Should a family of methods like eg
x.rounded(.towardZero, toMultipleOf: 8)
andx.rounded(.up, toPowerOf: 2)
be added toBinaryInteger
andBinaryFloatingPoint
?
(Related discussion)