以四舍五入保留两位小数为例 js: 浮点数.toFixed(2) java: StString.format("%.1f", 浮点数) sql: update 表名 t set t.供价名 =round(供价名,2)