I'm trying to store a decimal number in a postgres database in flask using sqlalchemy and the number is rounded

Viewed 472

Im trying to save a price variable in sqlalchmey but if its 78.6 it rounds up to 79.0

I've tried numeric and float datatypes and I'm using a postgresql heroku database

db.Column(db.Float(precision=1,asdecimal=False,decimal_return_scale=None))
0 Answers
Related