-
+
for the equivalent type in the
PostgreSQL> server. Because of the arbitrary precision this
variable needs to be able to expand and shrink dynamically. That's why you
- can only create variables on the heap by means of the
+ can only create numeric variables on the heap, by means of the
PGTYPESnumeric_new> and PGTYPESnumeric_free>
- functions. The decimal type, which is similar but limited in the precision,
+ functions. The decimal type, which is similar but limited in precision,
can be created on the stack as well as on the heap.
The decimal type
The decimal type is similar to the numeric type. However it is limited to
- a maximal precision of 30 significant digits. In contrast to the numeric
+ a maximum precision of 30 significant digits. In contrast to the numeric
type which can be created on the heap only, the decimal type can be
created either on the stack or on the heap (by means of the functions
- PGTYPESdecimal_new()> and PGTYPESdecimal_free()>. There are a lot of other
- functions that deal with the decimal type in the
Informix compatibility
- mode described in .
+ PGTYPESdecimal_new> and
+ PGTYPESdecimal_free>).
+ There are a lot of other functions that deal with the decimal type in the
+
Informix compatibility mode described in
+ linkend="ecpg-informix-compat">.
The following functions can be used to work with the decimal type and are