Jump to content

Best way to store price's in database?


bobby317

Recommended Posts

From the manual:

http://dev.mysql.com/doc/refman/5.0/en/numeric-types.html

 

(emphasis added)

The DECIMAL and NUMERIC data types are used to store exact numeric data values. In MySQL, NUMERIC is implemented as DECIMAL. These types are used to store values for which it is important to preserve exact precision, for example with monetary data.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.