@@ -59,8 +59,8 @@ If the result does not fit in the return type, an arithmetic overflow error occu
5959 The following example demonstrates raising a number to the power of 3 (the cube of the number).
6060
6161```
62- DECLARE @input1 float ;
63- DECLARE @input2 float ;
62+ DECLARE @input1 FLOAT ;
63+ DECLARE @input2 FLOAT ;
6464SET @input1= 2;
6565SET @input2 = 2.5;
6666SELECT POWER(@input1, 3) AS Result1, POWER(@input2, 3) AS Result2;
@@ -81,12 +81,12 @@ Result1 Result2
8181
8282```
8383SELECT
84- POWER(CAST(2.0 AS float ), -100.0) AS FloatResult,
84+ POWER(CAST(2.0 AS FLOAT ), -100.0) AS FloatResult,
8585POWER(2, -100.0) AS IntegerResult,
86- POWER(CAST(2.0 AS int ), -100.0) AS IntegerResult,
86+ POWER(CAST(2.0 AS INT ), -100.0) AS IntegerResult,
8787POWER(2.0, -100.0) AS Decimal1Result,
8888POWER(2.00, -100.0) AS Decimal2Result,
89- POWER(CAST(2.0 AS decimal (5,2)), -100.0) AS Decimal2Result;
89+ POWER(CAST(2.0 AS DECIMAL (5,2)), -100.0) AS Decimal2Result;
9090GO
9191```
9292
@@ -102,7 +102,7 @@ FloatResult IntegerResult IntegerResult Decimal1Result Decimal2Result
102102 The following example returns ` POWER ` results for ` 2 ` .
103103
104104```
105- DECLARE @value int , @counter int ;
105+ DECLARE @value INT , @counter INT ;
106106SET @value = 2;
107107SET @counter = 1;
108108
0 commit comments