Skip to content
Tcl Source Code Artifact [5a4e18d522]
Login

Artifact [5a4e18d522]

Artifact 5a4e18d5220bd74b49700a9f2b1863a762cbc589:

Ticket change [5a4e18d522] - New ticket [3564821fffffffff|3564821fff] <i>math rounding function with arbitrary decimal precision</i>. by jmcuaz on 2012-09-04 21:22:46.
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