I need to store values in PostgreSQL database where 12 numbers and 6 decimal. According to PostgreSQL it provides numeric datatype. I created a field with numeric(18,6), but when I am entering value, it is just accepting 15 digits values total.
For e.g. If i try to store number 123456789123.123456, it truncates number and stores only 123456789123.123.
In JavaScript, when I am trying to parse a string of 18 digits including 6 decimals it returns only 17 digits, 12 numbers and 5 decimals.
For e.g.
var number = "123456789123.123456"
console.log(parseFloat(number));
it prints only 123456789123.12346
Is there any solution about this?