When zero decimal division sqlserver

Digital divide, attention 10.00 / 100
                          10 / 100.00 decimal point will write
the SELECT Cast (10.00 / 100 AS decimal (18,2)) 
the SELECT Cast (10 / 100.00 AS decimal (18,2)) 

Reproduced in: https: //www.cnblogs.com/liyunchuan/p/11063968.html

Guess you like

Origin blog.csdn.net/weixin_34293059/article/details/93314723