Overview
| Artifact ID: | 84fd588d06a14952c48be2f2bda098aaa913d5c4eb355924f635b0ecb0447b4e |
|---|---|
| Ticket: | 62144fdc02ef37b0fcbdbbcd05ffb8375446f536
"scan NaN %f" returns a list with an empty element |
| User & Date: | oehhar on 2026-07-21 11:00:57 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- comment changed to:
I tried a bit with doubles, scan and format with NaN and stumbled over the following: <verbatim> % scan NaN %f {} % scan NaN %f fl 0 % set fl can't read "fl": no such variable </verbatim> For sure it is a bug: * that "scan NaN %f" returns a list with one element with the empty string As NaN is a valid value for a double, it would be beneficial for me, that "scan NaN %f" really scans a double with a NaN value. Apparently, TCL does not see "NaN" as a double value. "INF" works for scan, format, expr. Even if there is no way to generate a NaN within TCL, it may come from an external source like a data base. Thanks for all, Harald - foundin changed to: "8.6-9.1"
- is_private changed to: "0"
- login: "oehhar"
- priority changed to: "5 Medium"
- private_contact changed to: "0f366eb3e9e2fcab52b8ebacd197db9047186a5f"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "oehhar"
- subsystem changed to: "18. Commands M-Z"
- title changed to: ""scan NaN %f" returns a list with an empty element"
- type changed to: "Bug"