On 28/03/15 21:58, Dean Rasheed wrote:
[...]
Andrew mentioned that there have been complaints from people doing
calculations with monetary data that we don't implement
round-to-nearest-even (Banker's) rounding. It's actually the case that
various different financial calculations demand different specific
rounding modes, so it wouldn't be enough to simply change the default
- we would have to provide a choice of modes.
[...]
Could the 2 current round functions have cousins that included an extra
char parameter (or string), that indicated the type of rounding?
So we don't end up with an explosion of rounding functions, yet could
cope with a limited set of additional rounding modes initially, and
possibly others in the future.
Cheers,
Gavin
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers