I am trying to do the following calculation:
DECLARE @X Decimal(18,6);
DECLARE @Y Decimal(20,16);
SET @X = 0.002700;
SET @Y = 0.0027770000000000;
SELECT 200 * ( POWER(@Y, ( -1 / ( 2 * @X ))) - 1 );
However this results in:
Msg 8115, Level 16, State 2, Line 7
Arithmetic overflow error converting expression to data type float.
I have tried casting to float but to no avail.
Any ideas what I am missing here?