Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 27edee8f62b986ad752a12e7f65055572685eec63a1c5267bb1184a9878d048c
Ticket: 578b7e273c03c913a82de4d314f30c883a19615f
Arithmetic Series Objects get wrong precision in some cases
User & Date: dkf on 2024-02-12 18:22:01
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. comment changed to:
    I would expect that if the first command below finds the element, the second would also do so. Apparently not.
    ```
    % expr {2.8 in [lseq 0 count 100 by .1]}
    1
    % expr {2.8 in [lseq 0 count 200 by .1]}
    0
    ```
    The problem appears to be that cumulative error in the projected forward `end` value (in turn used to compute the number of values, which we provide) is resulting in the precision being estimated to be 15 instead of 1. Probably ought to have an alternate way of building ArithSeries objects that takes start/count/step instead of start/end/step to avoid the systematic error...
    
  5. is_private changed to: "0"
  6. login: "dkf"
  7. priority changed to: "5 Medium"
  8. private_contact changed to: "f6b536f9c1ed4b589e96e38fb613afc3d8991783"
  9. resolution changed to: "None"
  10. severity changed to: "Important"
  11. status changed to: "Open"
  12. submitter changed to: "dkf"
  13. subsystem changed to: "14. List Object"
  14. title changed to:
    Arithmetic Series Objects get wrong precision in some cases
    
  15. type changed to: "Bug"