Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change to exact numerics data type term #19835

Merged
merged 1 commit into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
:::
Loading