Double precision is lost with two types of problems arise reduction

Double precision is lost with two types of problems arise reduction

720.50-279.5=440.099999999

Instead of 440.1

Solution, the database type to decimal type, to two decimal precision

 

Guess you like

Origin www.cnblogs.com/qianzf/p/10983468.html