Read more

Don't ever use the float type for database columns

Henning Koch
February 24, 2014Software engineer at makandra GmbH

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

Illustration money motivation

Opscomplete powered by makandra brand

Save money by migrating from AWS to our fully managed hosting in Germany.

  • Trusted by over 100 customers
  • Ready to use with Ruby, Node.js, PHP
  • Proactive management by operations experts
Read more Show archive.org snapshot

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

Posted by Henning Koch to makandra dev (2014-02-24 12:51)