| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Scott Marlowe <smarlowe(at)g2switchworks(dot)com> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: numeric precision when raising one numeric to another. |
| Date: | 2005-05-18 21:42:28 |
| Message-ID: | 25606.1116452548@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general pgsql-patches |
Scott Marlowe <smarlowe(at)g2switchworks(dot)com> writes:
> It appears from checking the output of exponentiation of one numeric to
> another, the output is actually in floating point. Is this normal and /
> or expected?
Yes, seeing that the only ^ operator we have is float8.
regression=# \do ^
List of operators
Schema | Name | Left arg type | Right arg type | Result type |
Description
------------+------+------------------+------------------+------------------+----------------------
pg_catalog | ^ | double precision | double precision | double precision | exponentiation (x^y)
(1 row)
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Scott Marlowe | 2005-05-18 21:46:38 | Re: numeric precision when raising one numeric to |
| Previous Message | Scott Marlowe | 2005-05-18 21:17:49 | numeric precision when raising one numeric to another. |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Scott Marlowe | 2005-05-18 21:46:38 | Re: numeric precision when raising one numeric to |
| Previous Message | Scott Marlowe | 2005-05-18 21:17:49 | numeric precision when raising one numeric to another. |