Skip to content

Commit c990979

Browse files
authored
Merge pull request #5115 from icoric/patch-33
Updated capitalization
2 parents 1cf24f7 + 90793e7 commit c990979

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

docs/t-sql/functions/power-transact-sql.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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;
6464
SET @input1= 2;
6565
SET @input2 = 2.5;
6666
SELECT POWER(@input1, 3) AS Result1, POWER(@input2, 3) AS Result2;
@@ -81,12 +81,12 @@ Result1 Result2
8181

8282
```
8383
SELECT
84-
POWER(CAST(2.0 AS float), -100.0) AS FloatResult,
84+
POWER(CAST(2.0 AS FLOAT), -100.0) AS FloatResult,
8585
POWER(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,
8787
POWER(2.0, -100.0) AS Decimal1Result,
8888
POWER(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;
9090
GO
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;
106106
SET @value = 2;
107107
SET @counter = 1;
108108

0 commit comments

Comments
 (0)