Skip to content
Tcl Source Code Artifact [0c1ebe7dab]
Login

Artifact [0c1ebe7dab]

Artifact 0c1ebe7dabbf211138f92fc8fedaa95354a3041c395f306e127ed630b39a87bc:

Ticket change [0c1ebe7dab] - Ticket [bd71dd33055d27d7|bd71dd3305] <i>round() function with precision argument rounding away from zero</i> status still Open with 3 other changes by anonymous on 2025-11-27 09:15:36.
D 2025-11-27T09:15:36.185
J icomment Yes\sthis\ssubject\sis\sa\swide\sone\s...\r\nFor\sa\sgeneral\spurpose\slangage,\sthe\slack\sof\sthe\smost\scommon\srounding\smethod\sof\sfp\snumbers\sis\sa\ssurprise\s(compared\sto\sthe\srange\sof\smathematical\sfunctions\soffered,\son\sthe\sother\shand,\sin\s::tcl::mathfunc).\r\nI\sshare\syour\spoint\sof\svue\s:\sa\snew\sdesign\sshould\sprovide\ssufficient\sflexibility\sto\smaximize\sits\susefullness.\r\nHowever,\sI'm\snot\ssure\sabout\sthe\seffective\sneed\sof\sother\smethods\sthan\s"away\sfrom\szero"\sor\s"toward\szero"\s(in\sTcl/Tk\sprojects).\r\nA\spossible\ssupplemental\sargument\sin\sfavour\sof\sa\sfunction\sagainst\sa\scommand\sis\sthat\swith\sa\ssole\ssuplementary\sprecision\sargument\sto\sthe\sexisting\sround()\sfunction,\ssome\sflexibility\scan\sbe\sobtained\sin\sgiving\sthe\schoice\sbetween\stwo\smethods\sbased\son\sthe\spositive\sor\snegative\ssign\sof\sthe\sprecision\sargument\s(a\sway\swich\sseems\snot\stoo\scounter\sintuitive\sto\sme,\sconvenient,\sbut\syes\ssomething\sunusal)\r\n\r\nThenk\syou\r\nJean-Marie
J login anonymous
J mimetype text/plain
K bd71dd33055d27d7fc8f075412359822195c3cd9
U anonymous
Z 7f121b1022a805fc1ead066fec0f3b01