Jump to content

Integer type in MySQL not allowing decimals, how do I?


Jfisher446

Recommended Posts

I am trying to get prices imported into a table. I set the type as Integer but it is rounding up the decimals as opposed to including them. I read the mysql manual regarding numeric types and from what I can tell I need to change the precision of it but theres not an option for that so I simply think that I am reading the wrong sections and can't find what I need. How can I keep the decimals in the data? Also is there anyway when pulling the prices from the table to include commas (some data is in billions of dollars)?

Thanks in advance

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.