Don't ever use the float type for database columns

Like in any language, a FLOAT will eventually corrupt data due to rounding errors.

Please use DECIMAL, which has well-defined behavior for rounding and range overflows.

Henning Koch over 6 years ago
This website uses short-lived cookies to improve usability.
Accept or learn more