Subject | Re: [ib-support] Re: decimal / numeric |
---|---|
Author | Claudio Valderrama C. |
Post date | 2002-04-10T23:19:58Z |
"Peter Faulks" <pfaulks@...> wrote in message
news:20020409185552.67d3604e.peter@......
Here, precision is the total number of digits in the number. It's not
related to arithmetic rounding at all. From that "precision", some places
are reserved for the scale, that's the decimal places.
Any documentation you may read (SQL standard, IB documentation) uses
numeric(precision, scale)
decimal(precision, scale)
C.
news:20020409185552.67d3604e.peter@......
>Nothing to do.
> And therefore rounding errors?
>
> eg: SELECT SUM(<a_numeric_column) WHERE .....
Here, precision is the total number of digits in the number. It's not
related to arithmetic rounding at all. From that "precision", some places
are reserved for the scale, that's the decimal places.
Any documentation you may read (SQL standard, IB documentation) uses
numeric(precision, scale)
decimal(precision, scale)
C.