SQL Server: Calculation with numeric literals

前端 未结 4 1217
梦谈多话
梦谈多话 2021-02-14 10:17

I did some testing with floating point calculations to minimize the precision loss. I stumbled across a phenomen I want to show here and hopefully get an explanation.

Wh

4条回答
  •  醉酒成梦
    2021-02-14 11:10

    Yes, you frequently have to cast them to float get better precision. My take on it:

    For better precision cast decimals before calculations

提交回复
热议问题