Artifacts Associated With Ticket 98006f00ac471be5
Ticket change [06c7890735] (rid 236238) by juliannoble2 on 2024-12-27 02:12:24:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-plain"
- comment initialized to:
Tested on various windows builds only. isunordered unexpectedly returns 1 for a range of negative values when they are expressed in integer form. I'm not sure of the usecase for negative values here, but it doesn't seem to match the documentation as they should be promotable to floats, and as neither argument is NaN - the 1 returns are unexpected. %tcl::mathfunc::isunordered 1 -1.0 0 %tcl::mathfunc::isunordered 1 -1 1 This occurs for negative values expressed in integer form up to negative 2**52 for numbers below that - we again get a zero result. %tcl::mathfunc::isunordered -4503599627370495 1 %tcl::mathfunc::isunordered -4503599627370496 0
- is_private initialized to: "0"
- login: "juliannoble2"
- priority initialized to: "5 Medium"
- private_contact initialized to: "957fdfcd8744611e3fe1f4896c7538b1d9bf47b2"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "juliannoble2"
- subsystem initialized to: "- New Builtin Commands"
- title initialized to:
tcl::mathfunc::isunordered inconsistency with some negative values
- type initialized to: "Bug"
Ticket change [1b1ff01cea] (rid 236239) by juliannoble2 on 2024-12-27 02:13:41:
- comment changed to:
Tested on various windows builds only. isunordered unexpectedly returns 1 for a range of negative values when they are expressed in integer form. I'm not sure of the usecase for negative values here, but it doesn't seem to match the documentation as they should be promotable to floats, and as neither argument is NaN - the 1 returns are unexpected. %tcl::mathfunc::isunordered 1 -1.0 0 %tcl::mathfunc::isunordered 1 -1 1 This occurs for negative values expressed in integer form up to negative 2**52 for numbers below that - we again get a zero result. %tcl::mathfunc::isunordered 1 -4503599627370495 1 %tcl::mathfunc::isunordered 1 -4503599627370496 0
- login: "juliannoble2"
- mimetype: "text/plain"
- comment changed to:
Ticket change [af5ab0551f] (rid 236251) by sebres on 2024-12-27 21:23:22:
- foundin changed to: "8.7+"
- icomment:
Indeed, tcl::mathfunc::isunordered has mistakenly considered non-double numbers (e.g. int) as double.<br/> Fixed for 8.7+, thanks for the report.
- login: "sebres"
- mimetype: "text/x-fossil-wiki"
Ticket change [de5a121519] (rid 236252) by sebres on 2024-12-27 21:23:54:
- closedate changed to: "2460672.39160301"
- closer changed to: "sebres"
- login: "sebres"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- title changed to:
tcl::mathfunc::isunordered inconsistency with some integer values
Ticket change [5481f99519] (rid 236260) by jan.nijtmans on 2024-12-28 09:43:56:
- closer changed to: "nobody"
- icomment: "There are still test failures with MSVC on Windows"
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "None"
- status changed to: "Open"
Ticket change [7faff67425] (rid 236268) by sebres on 2024-12-28 14:09:06:
- closedate changed to: "2460673.08966204"
- closer changed to: "sebres"
- icomment:
Indeed, values of FP_* are compiler/implementation specific, e. g. for MSVC FP_NORMAL is equal -1, thus rewritten without FP_CLS_ERROR, because error-prone (whatever corrected value could still cross them later by some other platforms/compilers).<br/> Fixed now in [3059fadfe6daf175].
- login: "sebres"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"