Subject | Re: [firebird-support] Multiplication and Data Types |
---|---|
Author | Dimitry Sibiryakov |
Post date | 2006-03-01T09:40:02Z |
On 1 Mar 2006 at 8:22, radevojvodic wrote:
INTEGER * INTEGER -> INTEGER (BIGINT?)
BIGINT * BIGINT -> BIGINT
NUMERIC/DECIMAL(n,m) * INTEGER -> NUMERIC(n (18?),m)
NUMERIC(*,n) * NUMERIC(*,m) -> NUMERIC(18,n+m)
NUMERIC(*,*) * DOUBLE PRECISION -> DOUBLE PRECISION
DOUBLE PRECISION * DOUBLE PRECISION -> DOUBLE PRECISION
--
SY, Dimitry Sibiryakov.
>Is there anyone that could give me a detailed explanation onAssuming you use dialect 3...
>multiplication of different data types. data type of result of this
>operation is not very clear to me.
INTEGER * INTEGER -> INTEGER (BIGINT?)
BIGINT * BIGINT -> BIGINT
NUMERIC/DECIMAL(n,m) * INTEGER -> NUMERIC(n (18?),m)
NUMERIC(*,n) * NUMERIC(*,m) -> NUMERIC(18,n+m)
NUMERIC(*,*) * DOUBLE PRECISION -> DOUBLE PRECISION
DOUBLE PRECISION * DOUBLE PRECISION -> DOUBLE PRECISION
--
SY, Dimitry Sibiryakov.