I have a column of bigint values, e.g. 62639999999999993, and I want to divide it by 10^18 (precise). Seems very reasonable I should get 0.062639999999999993. Instead I keep getting 0.06263999999999999.
I've tried casting the BIGINT column into a precise numeric datatype before dividing it but I keep getting the wrong answer on something that seemingly should be very simple.
I also tried the SET extra_float_digits = 3
option to no avail.
Is it some sort of issue with my PC? This is a PostgreSQL 12.4, 64-bit database on my local desktop running Windows 10. CPU is an i7-10700k with 16GB of RAM. No overclock.