Subject | Re: [firebird-support] Currency |
---|---|
Author | Helen Borrie |
Post date | 2004-01-18T01:20:17Z |
At 07:51 PM 17/01/2004 -0500, you wrote:
about. That said, keep your eyes on things that use exchange rates. These
are usually quoted as numeric(x,4) or numeric(x,5).
to take care of existing view declarations (drop and recreate) and stored
procs and triggers that poke column values into numeric(9,2)
variables. (You can use RECREATE on these).
/hb
>So the question is, given an application using US dollars, is there anyNo. Numeric(9,2) will overflow on 10 million.
>value to using numeric(9,2) instead of numeric(18,2)?
>And is numeric(x,2) correct for dollars?Yes. It's exact decimal, so there are no extraneous zillionths floating
about. That said, keep your eyes on things that use exchange rates. These
are usually quoted as numeric(x,4) or numeric(x,5).
>Oh, and one last question - if there is no value to (9,2), is there anyHarm, no. You can store a (9,2) into an (18,2). Work, some. You'll have
>harm in changing that to (18,2) in existing applications?
to take care of existing view declarations (drop and recreate) and stored
procs and triggers that poke column values into numeric(9,2)
variables. (You can use RECREATE on these).
/hb