sql server - Round 916.984800 to 916.99 -


is possible round 916.984800 916.99 in sql server?

i've tried below don't want '+ 0.1' solution.

round((((424.53 - 0) * 36) * (6 / 100)),2) + .01 [amount]  

or

round((((424.53 - 0) * 36) * (0.06)),2) + .01 [amount]  

thanks

this produces expected output:

select ceiling((424.53 - 0) * 36 * 0.06 * 100) / 100  [amount]  amount ---------- 916.990000 

what happens?

select (424.53 - 0) * 36 * 0.06 * 100 

this returns 91698.4800, ceiling returns smallest integer greater than, or equal to, specified numeric expression, in case 91699, , later divide 100, brings expected result.


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -