Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5e1ddabacf69d6da61d38510b7280c48fe5143c4
Ticket: 1510060fffffffffffffffffffffffffffffffff
[string is double -strict] versus [expr int()]
User & Date: nobody on 2006-06-21 15:41:11
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    My code looks like this:
    
        if {[string is double -strict $x]} {
          set y [expr {int($x)}]
        }
    
    This causes an error in the int($x) expression
    when $x had a value of NaN.
    
    I'm not sure what ought to be done about this.
    I just want to record the problem so that I
    don't forget about.
    
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "18. Commands M-Z"
  10. title changed to: "[string is double -strict] versus [expr int()]"
  11. type changed to: "Bug"