Jens
1
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 to BinaryFloatingPoint?
-
Should isPower(of:) be added to BinaryInteger and BinaryFloatingPoint?
(Related discussion)
-
Should a family of methods like eg x.rounded(.towardZero, toMultipleOf: 8) and x.rounded(.up, toPowerOf: 2) be added to BinaryInteger and BinaryFloatingPoint?
(Related discussion)
3 Likes
sjavora
(Šimon Javora)
2
1 Like
Jens
3
Oops, thanks! I've edited the original post (removed isEven, isOdd).