Subject | Re: [firebird-support] NUMERIC(18,6) calculation problem |
---|---|
Author | Radu Sky |
Post date | 2006-02-23T22:39:37Z |
Luis Madaleno wrote:
No matter that you multiply by 1, fld2 is declared as NUMERIC(18,6) so
the result is will be NUMERIC(18,12);
Use CAST as NUMERIC(18,6)
HTH
Radu
> But I am always multiplying by 1.Hello,
> Since fld2 is always 1 (in my tests):
>
> new.fld3 = new.fld1 * 1;
> this shouldn't return any error;
>
> But should NUMERIC(18,6) allow for bigger values?
>
> Luis
>
No matter that you multiply by 1, fld2 is declared as NUMERIC(18,6) so
the result is will be NUMERIC(18,12);
Use CAST as NUMERIC(18,6)
HTH
Radu