Skip to content
Closed
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
4 changes: 4 additions & 0 deletions docs/sql-ref-literals.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,10 @@ E [ + | - ] digit [ ... ]

Case insensitive, indicates `DECIMAL`, with the total number of digits as precision and the number of digits to right of decimal point as scale.

* **default (no postfix)**

Indicates `DECIMAL`, same as the `BD` postfix.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exponential w/o postfix, such as 1.2E3, is a double by default

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, ok. I can make another PR to clarify this point, unless you prefer to do it yourself.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ohh actually let me revert this first. Let's make the proper fix together.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, if you prefer to do that. I will make a new PR to clarify the default type with and without the exponent.


#### Fractional Literals Examples

```sql
Expand Down