lajkonik86 wrote:aha ๐
precision of roughly 14 decimal digits
well 12 will do, so i suppose i am fine with floating point precision
a 0.000000000001 deviation would mess my system
is that going to be a problem?
With floating point yes. Use numeric / decimal (same type, one is an alias for the other.)
Anyone can get the wrong answer fast (i.e. floats)
Note that numeric types (i.e. exact precision) can be used for dozens or even hundreds of places and still get accurate answers.
(edited to add: Ok, with MysQL the math libs they have limit you to 65 digits. postgresql's libs limit you to 1000 digits. Apparently, due to a bug which was discovered early in the 5.0 series, MySQL started limited the numeric types to 65 digits to prevent the bug from showing up.)