]> granicus.if.org Git - postgresql/commit
Extend numeric_round and numeric_trunc to accept negative scale inputs
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 13 Mar 2000 02:31:13 +0000 (02:31 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 13 Mar 2000 02:31:13 +0000 (02:31 +0000)
commite631df3c1beb5609ba9aab1515a3e38f619f43df
tree1a135da892a9dd5f565abb8de1d4ac6e776fac75
parent57cf09591b4140773433f1b3ed5dc998ba2668a4
Extend numeric_round and numeric_trunc to accept negative scale inputs
(ie, allow rounding to occur at a digit position left of the decimal
point).  Apparently this is how Oracle handles it, and there are
precedents in other programming languages as well.
src/backend/utils/adt/numeric.c