Hello,
I have a field of data type "Numeric" in a Sqlite database where floating point numbers are stored. Unfortunately, Sqlite seems to automatically round the decimal places when they exceed a certain length (at least on Android).
For example, 12345.678 becomes 12345.7
This is unacceptable as I need the high accuracy.
That's why I experimentally changed the data type to "Real", but unfortunately with the same result.
Of course I could store the value without decimal point as integer (12345678) and divide it by 1000, but shouldn't actually a modern database system be able to handle floating point values directly?
Does anyone have a suggestion for a better solution?
Many thanks in advance.
Regards.
I have a field of data type "Numeric" in a Sqlite database where floating point numbers are stored. Unfortunately, Sqlite seems to automatically round the decimal places when they exceed a certain length (at least on Android).
For example, 12345.678 becomes 12345.7
This is unacceptable as I need the high accuracy.
That's why I experimentally changed the data type to "Real", but unfortunately with the same result.
Of course I could store the value without decimal point as integer (12345678) and divide it by 1000, but shouldn't actually a modern database system be able to handle floating point values directly?
Does anyone have a suggestion for a better solution?
Many thanks in advance.
Regards.