How do I raise a number to a power in Elixir? February 11, 2023 by Tarik Use the Erlang :math module :math.pow(2,3) #=> 8.0 If you want an integer: :math.pow(2,3) |> round #=> 8