Jump to content

Storing an average


Recommended Posts

Hello again,

 

I want to store an average in MYSQL, for example .897. What data type should I use? I am currently using decimal(10,3), but the database is out putting numbers like 0.897. From my understanding the "m" in decimal(m,0) has to be greater than the "0."

 

Any suggestions??

Link to comment
https://forums.phpfreaks.com/topic/263814-storing-an-average/
Share on other sites

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.