Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 90775695595159be57bf188b87281f86d3203c47
Ticket: 634856ffffffffffffffffffffffffffffffffff
results of 'string is integer' are wrong
User & Date: bwallner on 2002-11-07 07:36:46
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    I'm checking input values and see this strange
    behaviour of the 'string is integer' command.
    
    puts "tcl_version: $tcl_version"
    set numbers {1 +1 ++1 +-1 -+1 -1 --1 "-  +1"
                       "+  \n+1" "-  \t-1"}
    foreach num $numbers {
      puts "$num is integer: [string is integer $num]"
    }
    
    See the results of '[string is real]':
    
    set numbers {1.0 +1.0 ++1.0 +-1.0 -+1.0 -1.0 --1.0 "- 
    +1.0" 
    "+  \n+1.0" "-  \t-1.0"}
    foreach num $numbers {
       puts "$num is double: [string is double $num]"
    }
    
    
  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: "bwallner"
  9. subsystem changed to: "18. Commands M-Z"
  10. title changed to: "results of 'string is integer' are wrong"
  11. type changed to: "Bug"