D 2012-09-04T21:22:46 J assignee dgp J cmimetype text/plain J comment When\sdealing\swith\sfloating\spoint\snumbers,\sthere\sis\sno\seasy\sway\sin\stcl\sto\sdo\ssomething\slike\s"round(\s2.125\s,\s2\s)"\swith\san\sexpected\sreturn\sof\s2.13\n\nFor\sthe\schoice\sof\supward/downward\srounding\s(i.e.\stoward\sinf+\sor\sinf-)\sand\sto\sdisambiguate\sthe\ssemantic\sof\srounding\son\snegatives\sfp\snumbers,\smaybe\stwo\sseparate\sfunctions\swould\sbe\sgood\s:\ssomething\slike\s\nroundup(x,y)\s\s->\stoward\sinf+\nrounddown(x,y)\s->\stoward\sinf-\n\nRegards\n\nJean-Marie\sCuaz J foundin None J is_private 0 J priority 5\sMedium J resolution None J status Open J submitter jmcuaz J subsystem 48.\sNumber\sHandling J title math\srounding\sfunction\swith\sarbitrary\sdecimal\sprecision J type RFE K 3564821fffffffffffffffffffffffffffffffff U jmcuaz Z 7ddb9fd154f0b902a6b3bd3046cc23e8