oracle百分比计算
CASE WHEN V.GET_NUM /V.EFFECTIVE_NUM is null THEN '' WHEN V.GET_NUM /V.EFFECTIVE_NUM is not null THEN TO_CHAR ( NVL(ROUND (V.GET_NUM /V.EFFECTIVE_NUM, 4) * 100,0),'fm9999999990.00') || '%' ELSE '' END as THTJ_PROBABILITY ======================================================= TO_CHAR ( NVL(ROUND (V.GET_NUM /V.EFFECTIVE_NUM, 4) * 100,0),'fm9999999990.00')这句话防止0.0的时候不显示第一个0,只显示“点0”(.0),加上这句话就会显示0.0了。