floating point - When to ever use FLOATs in databases -
i've been reading around subject of floating point numbers , how can lead inaccuracies in calculations due binary nature, , such should never used financial applications decimal datatype preferred.
is there ever situation might preferable use float on decimal?
calculations on decimal yield inaccuracies. matters whether there specified rounding rules, such in financial applications, , operations involved. basically, depends on context.
if context follow ieee 754 rules in binary, using (binary) floats preferable.
Comments
Post a Comment