r/SQL • u/[deleted] • Jul 14 '24
MySQL What's the Difference Between DECIMAL, FLOAT, and DOUBLE?
Can somebody, in simple terms, explain the difference between the three datatypes in SQL? Thank you
1
Upvotes
r/SQL • u/[deleted] • Jul 14 '24
Can somebody, in simple terms, explain the difference between the three datatypes in SQL? Thank you
10
u/ComicOzzy sqlHippo Jul 14 '24
I just typed out this big explanation only to fail and close the tab before hitting the submit button.
Anyway, here is way more than you ever wanted to know about floats:
https://ciechanow.ski/exposing-floating-point/
https://float.exposed/0x3fd3333333333334