I am using the Sqlalchemy orm, when I enter a data of type Float
or Numeric
does not accept zeros, example:
price = 12.0231
price = 12.1021
price = 12.0012
The previous ones, if you keep the zeros
The problem is when the zeros go to the last
price = 12.1100 o price = 12.110
The database does not keep zeros
I am declaring it this way:
price = Column(Float((8,4), asdecimal=False), nullable=False)
price = Column(Numeric(8,4), nullable=False)
Any ideas or suggestions?