Re: [Firebird-devel] Numeric literals and INT128 (including numeric types) vs DECFLOAT

2021-05-13 Thread Mark Rotteveel
On 13-05-2021 16:35, Alex Peshkoff via Firebird-devel wrote: On 5/13/21 3:47 PM, Mark Rotteveel wrote: 2. Exact numeric literals with 30 or more digits are handled as DECFLOAT(34), they should be handled as INT128 or DECIMAL/NUMERIC backed by INT128 (as those types support 38 digits; actually

Re: [Firebird-devel] Numeric literals and INT128 (including numeric types) vs DECFLOAT

2021-05-13 Thread Alex Peshkoff via Firebird-devel
On 5/13/21 3:47 PM, Mark Rotteveel wrote: I'm in the process of writing the Firebird 4.0 Language Reference, and I'm noticing some odd things with numeric literals and INT128 (including numeric types) and DECFLOAT. 2. Exact numeric literals with 30 or more digits are handled as

[Firebird-devel] Numeric literals and INT128 (including numeric types) vs DECFLOAT

2021-05-13 Thread Mark Rotteveel
I'm in the process of writing the Firebird 4.0 Language Reference, and I'm noticing some odd things with numeric literals and INT128 (including numeric types) and DECFLOAT. 1. Integer hex literals don't support INT128 (reported as https://github.com/FirebirdSQL/firebird/issues/6809) 2.