blob: f515936ac3bd8f2b6a03952f9c9f83eaa07f2937 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
defmodule Util do
def plusminus(number) when number > 0, do: "+#{number}"
def plusminus(0), do: "0"
def plusminus(number) when number < 0, do: "#{number}"
def float_paparse(string) do
string
|> String.replace(",", ".")
|> Float.parse()
end
end
|