I don't know if it's an Ecto's or Elixir's issue. When I have a number in database like 1000, 15000 etc. Ecto returns it as 1.0e3, 1.5e4... If I change that 1000 to 1234 everything is ok.
Elixir 1.3.2, Ecto 2.0.3, MySQL
Migration:
alter table(:incoming_transfers) do
add :fee, :float # Ecto translates it as DOUBLE in MySQL
end
Schema:
schema "incoming_transfers" do
field :fee, :float
end
If I change manually in my database type DOUBLE to FLOAT the problem remains. But if I change it to INTEGER, it's good.