Mysql Sum
#convert string to Decimal / Float value and make sum without round problem
SUM(cast(moneyFiled as DECIMAL(10,4))) as moneyFiled # money or float ...
Funpro
#convert string to Decimal / Float value and make sum without round problem
SUM(cast(moneyFiled as DECIMAL(10,4))) as moneyFiled # money or float ...
SELECT ROUND(20.555, 1);
-- 20.5
SELECT ROUND(20.5, 0);
-- 21