I have this code
declare @termtomonths float
set @termtomonths=120/365.00
set @termtomonths= round(@termtomonths,2,1)*12
select power(1-(1+0.11/12.00), -3.84)
When I run it, it returns an error
Msg 3623, Level 16, State 1, Line 6
An invalid floating point operation occurred.
Try this formula in MS EXCEL and it works
=1-(1+0.11/12)^-3.84
Expected Result
0.034432865
How can I convert this excel formula to sql formula?
thank
source
share