Overview
| Artifact ID: | 06c78907356ed544d8763007620de2fa8e49e14b903b61f5c205fa5fd163bb84 |
|---|---|
| Ticket: | 98006f00ac471be55d983d6a42606abc38f1d809
tcl::mathfunc::isunordered inconsistency with some integer values |
| User & Date: | juliannoble2 on 2024-12-27 02:12:24 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-plain"
- 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 -4503599627370495 1 %tcl::mathfunc::isunordered -4503599627370496 0
- is_private changed to: "0"
- login: "juliannoble2"
- priority changed to: "5 Medium"
- private_contact changed to: "957fdfcd8744611e3fe1f4896c7538b1d9bf47b2"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "juliannoble2"
- subsystem changed to: "- New Builtin Commands"
- title changed to:
tcl::mathfunc::isunordered inconsistency with some negative values
- type changed to: "Bug"