2

What kind of data type should I choose in MySQL to store digit like this 50.078294547389426

Nick
  • 15,765
  • 5
  • 22
  • 15
  • It depends. What precision do you need? Do you want binary or decimal? How important is performance? What do you know about the other values that will be in the field? – Matthew Flaschen Oct 21 '10 at 11:30
  • Even though the question is newer than this one, there is some good discussion here: http://stackoverflow.com/questions/5150274/difference-between-float-and-decimal-data-type – Sean Fahey Sep 30 '13 at 22:53

2 Answers2

0

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

http://www.tutorialspoint.com/mysql/mysql-data-types.htm

Initially id look at float but id try to get more of an idea of what sort of data your looking at first.

wmitchell
  • 5,665
  • 10
  • 37
  • 62
0

Use Float or double

http://dev.mysql.com/doc/refman/5.1/en/problems-with-float.html

zod
  • 12,092
  • 24
  • 70
  • 106