Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

round one decimal place mysql

SELECT ROUND(20.555, 1);
-- 20.5
SELECT ROUND(20.5, 0);
-- 21
Source by www.mysqltutorial.org #
 
PREVIOUS NEXT
Tagged: #decimal #place #mysql
ADD COMMENT
Topic
Name
4+8 =