Skip to content

Commit

Permalink
Change to exact numerics data type term
Browse files Browse the repository at this point in the history
  • Loading branch information
mosabua committed Nov 20, 2023
1 parent ed54241 commit 87a7912
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
11 changes: 5 additions & 6 deletions docs/src/main/sphinx/language/types.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,10 @@ IEEE Standard 754 for Binary Floating-Point Arithmetic.

Example literals: `DOUBLE '10.3'`, `DOUBLE '1.03e1'`, `10.3e0`, `1.03e1`

(fixed-precision-data-types)=
(exact-numeric-data-types)=
## Exact numeric

## Fixed-precision

Fixed-precision numbers can be expressed as numeric literals such as `1.1`, and
Exact numeric values can be expressed as numeric literals such as `1.1`, and
are supported by the `DECIMAL` data type.

Underscore characters are ignored within literal values, and can be used to
Expand All @@ -121,8 +120,8 @@ Leading zeros in literal values are permitted and ignored. For example,

### `DECIMAL`

A fixed-precision decimal number. Precision up to 38 digits is supported
but performance is best up to 18 digits.
A exact decimal number. Precision up to 38 digits is supported but performance
is best up to 18 digits.

The decimal type takes two literal parameters:

Expand Down
2 changes: 1 addition & 1 deletion docs/src/main/sphinx/routines/declare.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ characters:
DECLARE first_name, last_name, middle_name varchar(25);
```

A declaration of a fixed-precision decimal number with a default value:
A declaration of an exact decimal number with a default value:

```sql
DECLARE uptime_requirement decimal DEFAULT 99.999;
Expand Down
4 changes: 2 additions & 2 deletions docs/src/main/sphinx/sql/show-stats.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ here, are not included.
- `NULL` in the table summary row. Available for columns of
[DATE](date-data-type), [integer](integer-data-types),
[floating-point](floating-point-data-types), and
[fixed-precision](fixed-precision-data-types) data types.
[exact numeric](exact-numeric-data-types) data types.
* - `high_value`
- The highest value found in this column
- `NULL` in the table summary row. Available for columns of
[DATE](date-data-type), [integer](integer-data-types),
[floating-point](floating-point-data-types), and
[fixed-precision](fixed-precision-data-types) data types.
[exact numeric](exact-numeric-data-types) data types.
:::

0 comments on commit 87a7912

Please sign in to comment.