Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Nelson Fredsell — — source: Informix-list mailing list archive (1991-1998)
I'm dividing one number into another. Both numbers have 4 decimals,
but the caluculated value has only 2 decimals. I would like the
calculated value to also have 4 decimal places. How do I do this?
select (table_a.col_a + table_a.col_b) / table_b.col_a pct
from table_a, table_b
where table_a.col_c = table_b.col_c
thanks for the advice.
-Nelson
Nelson Fredsell
Cornerstone Capital
Atlanta, GA
nfredsel@cornercap.com
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.