Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: fcf8a115213c5feb383a2cdc93faa2a6fab3d60b012383ec8e32f5474360d4b8
Ticket: 62144fdc02ef37b0fcbdbbcd05ffb8375446f536
"scan NaN %f" returns a list with an empty element
User & Date: oehhar on 2026-07-24 07:58:45
Changes

  1. icomment:
    Thanks, Kai-Uwe, for the great hints and TIP pointers.
    I have apparently hit a difficult point.
    That explains why nobody adds comments.
    
    But the reason of this ticket is the return of an list with an emty string element by
    
    <verbatim>
    scan NaN %f
    </verbatim>
    
    So, NaN is represented here by the empty string.
    
    But
    
    <verbatim>
    scan NaN %f fl
    </verbatim>
    
    does not scan NaN as the empty string.
    
    This is inconsistent.
    
    Sorry to hear, that you had to abandon TCL due to missing nan support.
    Yes, there is now a "isnan()" command which might be the first step.
    
    And the documentation of scan/format do not mention +/-Inf neither, which works.
    
    Thanks for all,
    Harald
    
  2. login: "oehhar"
  3. mimetype: "text/x-fossil-wiki"
  4. username: "oehhar"