Tcl Source Code

View Ticket
Login
Ticket UUID: 1510060
Title: [string is double -strict] versus [expr int()]
Type: Bug Created on: 2006-06-21 15:41:11
Submitter: nobody Assigned to: dgp
Subsystem: 18. Commands M-Z Severity:
Priority: 8 Last modified: 2006-11-23 03:23:52
Status: Open Closed by:
Resolution: None Closed on:
Version: obsolete: 8.5a5
Description:
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.