Fix NUMERIC modulus to properly truncate division in computation. Division rounding was causing incorrect results.  Test case:
Fix NUMERIC modulus to properly truncate division in computation.
Division rounding was causing incorrect results.  Test case:

	test=> SELECT 12345678901234567890 % 123;
	 ?column?
	----------
	       78
	(1 row)

Was returning -45.

rvs/gpdb,xinzweb/gpdb,tangp3/gpdb,lpetrov-pivotal/gpdb,0x0FFF/gpdb,Quikling/gpdb,edespino/gpdb,ahachete/gpdb,xinzweb/gpdb,pavanvd/postgres-xl,50wu/gpdb,randomtask1155/gpdb,foyzur/gpdb,adam8157/gpdb,jmcatamney/gpdb,ahachete/gpdb,janebeckman/gpdb,50wu/gpdb,lisakowen/gpdb,jmcatamney/gpdb,edespino/gpdb,50wu/gpdb,cjcjameson/gpdb,Postgres-XL/Postgres-XL,randomtask1155/gpdb,adam8157/gpdb,greenplum-db/gpdb,edespino/gpdb,ovr/postgres-xl,postmind-net/postgres-xl,lintzc/gpdb,lpetrov-pivotal/gpdb,xinzweb/gpdb,janebeckman/gpdb,rvs/gpdb,Quikling/gpdb,0x0FFF/gpdb,CraigHarris/gpdb,snaga/postgres-xl,cjcjameson/gpdb,foyzur/gpdb,yazun/postgres-xl,jmcatamney/gpdb,kaknikhil/gpdb,xuegang/gpdb,Quikling/gpdb,tangp3/gpdb,zaksoup/gpdb,atris/gpdb,50wu/gpdb,edespino/gpdb,lisakowen/gpdb,lpetrov-pivotal/gpdb,cjcjameson/gpdb,chrishajas/gpdb,CraigHarris/gpdb,xuegang/gpdb,pavanvd/postgres-xl,yuanzhao/gpdb,rvs/gpdb,chrishajas/gpdb,lintzc/gpdb,tangp3/gpdb,CraigHarris/gpdb,yuanzhao/gpdb,arcivanov/postgres-xl,randomtask1155/gpdb,lisakowen/gpdb,rvs/gpdb,Chibin/gpdb,Quikling/gpdb,snaga/postgres-xl,xuegang/gpdb,oberstet/postgres-xl,kaknikhil/gpdb,oberstet/postgres-xl,royc1/gpdb,kaknikhil/gpdb,kmjungersen/PostgresXL,postmind-net/postgres-xl,lisakowen/gpdb,lintzc/gpdb,Postgres-XL/Postgres-XL,rvs/gpdb,chrishajas/gpdb,oberstet/postgres-xl,Chibin/gpdb,zaksoup/gpdb,rubikloud/gpdb,techdragon/Postgres-XL,lintzc/gpdb,kmjungersen/PostgresXL,cjcjameson/gpdb,Chibin/gpdb,greenplum-db/gpdb,edespino/gpdb,atris/gpdb,atris/gpdb,foyzur/gpdb,kaknikhil/gpdb,zaksoup/gpdb,snaga/postgres-xl,chrishajas/gpdb,greenplum-db/gpdb,postmind-net/postgres-xl,foyzur/gpdb,royc1/gpdb,yuanzhao/gpdb,royc1/gpdb,cjcjameson/gpdb,royc1/gpdb,adam8157/gpdb,rubikloud/gpdb,Chibin/gpdb,xinzweb/gpdb,yuanzhao/gpdb,xuegang/gpdb,oberstet/postgres-xl,techdragon/Postgres-XL,kaknikhil/gpdb,postmind-net/postgres-xl,snaga/postgres-xl,ovr/postgres-xl,rvs/gpdb,Quikling/gpdb,lpetrov-pivotal/gpdb,lpetrov-pivotal/gpdb,lintzc/gpdb,postmind-net/postgres-xl,ahachete/gpdb,royc1/gpdb,ashwinstar/gpdb,CraigHarris/gpdb,Quikling/gpdb,jmcatamney/gpdb,foyzur/gpdb,kmjungersen/PostgresXL,techdragon/Postgres-XL,chrishajas/gpdb,lintzc/gpdb,chrishajas/gpdb,Postgres-XL/Postgres-XL,greenplum-db/gpdb,randomtask1155/gpdb,xuegang/gpdb,atris/gpdb,kmjungersen/PostgresXL,yuanzhao/gpdb,greenplum-db/gpdb,rvs/gpdb,adam8157/gpdb,atris/gpdb,zaksoup/gpdb,janebeckman/gpdb,0x0FFF/gpdb,0x0FFF/gpdb,tpostgres-projects/tPostgres,lpetrov-pivotal/gpdb,royc1/gpdb,CraigHarris/gpdb,rubikloud/gpdb,rubikloud/gpdb,zeroae/postgres-xl,Quikling/gpdb,edespino/gpdb,kmjungersen/PostgresXL,adam8157/gpdb,0x0FFF/gpdb,CraigHarris/gpdb,xuegang/gpdb,zeroae/postgres-xl,ashwinstar/gpdb,lisakowen/gpdb,cjcjameson/gpdb,janebeckman/gpdb,ovr/postgres-xl,ashwinstar/gpdb,yazun/postgres-xl,yuanzhao/gpdb,Quikling/gpdb,tangp3/gpdb,rvs/gpdb,janebeckman/gpdb,techdragon/Postgres-XL,chrishajas/gpdb,janebeckman/gpdb,edespino/gpdb,randomtask1155/gpdb,pavanvd/postgres-xl,atris/gpdb,kaknikhil/gpdb,arcivanov/postgres-xl,foyzur/gpdb,edespino/gpdb,arcivanov/postgres-xl,lisakowen/gpdb,zaksoup/gpdb,Chibin/gpdb,Quikling/gpdb,yuanzhao/gpdb,tangp3/gpdb,edespino/gpdb,ashwinstar/gpdb,ashwinstar/gpdb,tpostgres-projects/tPostgres,CraigHarris/gpdb,tangp3/gpdb,zeroae/postgres-xl,randomtask1155/gpdb,0x0FFF/gpdb,jmcatamney/gpdb,pavanvd/postgres-xl,zeroae/postgres-xl,arcivanov/postgres-xl,kaknikhil/gpdb,Chibin/gpdb,oberstet/postgres-xl,royc1/gpdb,greenplum-db/gpdb,jmcatamney/gpdb,ahachete/gpdb,yazun/postgres-xl,adam8157/gpdb,adam8157/gpdb,tangp3/gpdb,Chibin/gpdb,cjcjameson/gpdb,janebeckman/gpdb,randomtask1155/gpdb,lisakowen/gpdb,edespino/gpdb,janebeckman/gpdb,tpostgres-projects/tPostgres,ashwinstar/gpdb,greenplum-db/gpdb,jmcatamney/gpdb,zaksoup/gpdb,Postgres-XL/Postgres-XL,Chibin/gpdb,chrishajas/gpdb,techdragon/Postgres-XL,ashwinstar/gpdb,kaknikhil/gpdb,lintzc/gpdb,cjcjameson/gpdb,tangp3/gpdb,randomtask1155/gpdb,Chibin/gpdb,lpetrov-pivotal/gpdb,zaksoup/gpdb,xinzweb/gpdb,foyzur/gpdb,jmcatamney/gpdb,lintzc/gpdb,rvs/gpdb,atris/gpdb,janebeckman/gpdb,ahachete/gpdb,xinzweb/gpdb,50wu/gpdb,yazun/postgres-xl,CraigHarris/gpdb,zeroae/postgres-xl,yuanzhao/gpdb,ahachete/gpdb,cjcjameson/gpdb,lintzc/gpdb,rubikloud/gpdb,50wu/gpdb,tpostgres-projects/tPostgres,rubikloud/gpdb,pavanvd/postgres-xl,Quikling/gpdb,rubikloud/gpdb,yazun/postgres-xl,ashwinstar/gpdb,xuegang/gpdb,royc1/gpdb,xuegang/gpdb,foyzur/gpdb,rvs/gpdb,arcivanov/postgres-xl,kaknikhil/gpdb,arcivanov/postgres-xl,rubikloud/gpdb,kaknikhil/gpdb,tpostgres-projects/tPostgres,lisakowen/gpdb,cjcjameson/gpdb,xinzweb/gpdb,ovr/postgres-xl,zaksoup/gpdb,xinzweb/gpdb,0x0FFF/gpdb,50wu/gpdb,adam8157/gpdb,greenplum-db/gpdb,0x0FFF/gpdb,atris/gpdb,xuegang/gpdb,yuanzhao/gpdb,ahachete/gpdb,yuanzhao/gpdb,ahachete/gpdb,50wu/gpdb,ovr/postgres-xl,snaga/postgres-xl,Postgres-XL/Postgres-XL,CraigHarris/gpdb,janebeckman/gpdb,lpetrov-pivotal/gpdb,Chibin/gpdb