Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 8a63e43e838d73358d948bed04e6141646ff7bc3f721caf7f166edf45903d8b0
Ticket: f4a4bd7f107031f273642cbaefc3cbed72315b1f
lseq "count" argument also dictates output formatting
User & Date: oehhar on 2024-08-30 16:52:40
Changes

  1. icomment:
    Dear Sergey,
    
    thank you for your insights.
    
    The explanation, that:
    
    <verbatim>
    lseq 3.0
    </verbatim>
    is a shortcut for
    <verbatim>
    lseq 0 to 3.0
    </verbatim>
    explains the behaviour.
    If one of the arguments is a float, the mathematics are float and the result is a float.
    
    So, I tried the equivalence:
    <verbatim>
    % lseq 0 to 3.0
    0.0 1.0 2.0 3.0
    % lseq 3.0
    0.0 1.0 2.0
    % lseq 0 to 3.5
    0.0 1.0 2.0 3.0
    </verbatim>
    
    For me, the item "3.0" is missing in the "lseq 3.0" case.
    
    Thank you all for all,
    Harald
    
  2. login: "oehhar"
  3. mimetype: "text/x-fossil-wiki"
  4. username: "oehhar"