17 lines
322 B
Elixir
17 lines
322 B
Elixir
module Numeric
|
|
def +(other)
|
|
Erlang.elixir_numeric_methods.add(self, other)
|
|
end
|
|
|
|
def -(other)
|
|
Erlang.elixir_numeric_methods.subtract(self, other)
|
|
end
|
|
|
|
def *(other)
|
|
Erlang.elixir_numeric_methods.multiply(self, other)
|
|
end
|
|
|
|
def /(other)
|
|
Erlang.elixir_numeric_methods.divide(self, other)
|
|
end
|
|
end |