diff --git a/src/prefix.jl b/src/prefix.jl index 36e742e..6209aa0 100644 --- a/src/prefix.jl +++ b/src/prefix.jl @@ -21,6 +21,9 @@ Base.:*(x, y::SIPrefix) = x * y.factor Base.:/(x::SIPrefix, y) = x.factor / y Base.:/(x, y::SIPrefix) = x / y.factor +Base.:^(x::SIPrefix, y) = x.factor ^ y +Base.:^(x, y::SIPrefix) = x ^ y.factor + # Prefixes > 1 const quetta = SIPrefix("quetta", "Q", 1e30) const ronna = SIPrefix("ronna", "R", 1e27)