Data type for all numbers. ex: 2, 3.3, -2.890, 01, etc
Trying to create my database but I cant figure out what data type to label a specific field in my migration.
I want the field to store numbers like 2, 3.3, -2.890, 01, etc...
However, I dont want to enforce every number must have a certain amount of decimal places.
Have you thought about just using a string and then convert them in code? Otherwise, you might want to search for a plugin because the standard install of MySQL or MariaDB doesn't give you a way to include all of the variances you require to the best of my knowledge. INT is probably the closest.