Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit 3144fa1

Browse files
authored
Update abs-transact-sql.md
Text revisions to tighten and optimize the reading flow of the material.
1 parent 52f7d81 commit 3144fa1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ ABS ( numeric_expression )
4444

4545
## Arguments
4646
*numeric_expression*
47-
Is an expression of the exact numeric or approximate numeric data type category.
47+
An expression of the exact numeric or approximate numeric data type category.
4848

4949
## Return Types
5050
Returns the same type as *numeric_expression*.
5151

5252
## Examples
53-
The following example shows the results of using the `ABS` function on three different numbers.
53+
This example shows the results of using the `ABS` function on three different numbers.
5454

5555
```sql
5656
SELECT ABS(-1.0), ABS(0.0), ABS(1.0);
@@ -63,7 +63,7 @@ SELECT ABS(-1.0), ABS(0.0), ABS(1.0);
6363
1.0 .0 1.0
6464
```
6565

66-
The `ABS` function can produce an overflow error when the absolute value of a number is greater than the largest number that can be represented by the specified data type. For example, the `int` data type can hold only values that range from `-2,147,483,648` to `2,147,483,647`. Computing the absolute value for the signed integer `-2,147,483,648` causes an overflow error because its absolute value is greater than the positive range for the `int` data type.
66+
The `ABS` function can produce an overflow error when the absolute value of a number exceeds the largest number that the specified data type can represent. For example, the `int` data type has a value range from `-2,147,483,648` to `2,147,483,647`. Computing the absolute value for the signed integer `-2,147,483,648` will cause an overflow error because its absolute value exceeds the positive range limit for the `int` data type.
6767

6868
```sql
6969
DECLARE @i int;
@@ -72,7 +72,7 @@ SELECT ABS(@i);
7272
GO
7373
```
7474

75-
Here is the error message:
75+
Returns this error message:
7676

7777
"Msg 8115, Level 16, State 2, Line 3"
7878

0 commit comments

Comments
 (0)