Swift's standard library includes AdditiveArithmetic
, but not MultiplicativeArithmetic
. So I made one!
MultiplicativeArithmetic
2.0.1
Formalizes an object's ability to be multiplied by something
swift
swiftpackage
swiftpackagemanager
swift-package
swift-package-manager
spm
math
maths
mathematics
arithmetic
multiplication
RougeWare/Swift-MultiplicativeArithmetic
What's New
2.0 • Added `sqrt` and `pow`
2023-10-25T00:42:02Z
sqrt
and pow
are like fancy multiplying right? Right.
So now they're here! Turns out the standard libraries tend to include these already so We just had to thinly wrap them. Except Decimal
; that had some ancient ObjC weirdness. Woo!