loading...

Discussion on: Daily Challenge #30 - What is the price?

Collapse
brightone profile image
Oleksii Filonenko

Elixir:

defmodule Price do
  def original(price, discount),
    do: Float.round(price * 100 / (100 - discount), 2)
end