Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql sum cast decimal without round

#convert string to Decimal / Float value and make sum without round problem
SUM(cast(moneyFiled as DECIMAL(10,4))) as moneyFiled # money or float ...
 
PREVIOUS NEXT
Tagged: #mysql #sum #cast #decimal
ADD COMMENT
Topic
Name
3+8 =