In MySQL I have a DECIMAL field set to 10,10. However, whenever I enter a new value, it shows 0.9999999999. What would I need to change to accept any number with an accuracy of 10 digits after the comma? It does work with 10,6 for some reason.
PS: I want to insert exchange rates.
The first number is the total number of digits to store, the second one is the number of digits on the fractional part. So
DECIMAL (10, 10)is only for 10 fractional digits. You can use something likeDECIMAL (20, 10)to allow 10 digits on both the integral and fractional parts.