#3269 string is integer "" => 1 !

obsolete: 8.4.11
closed-invalid
5
2005-10-17
2005-10-17
Anonymous
No

Tcl version : 8.4.11.0
OS: any
Problem : string is integer "" returns 1
Expected behavior : it should return 0

Discussion

  • Donal K. Fellows

    • status: open --> closed-invalid
     
  • Donal K. Fellows

    Logged In: YES
    user_id=79902

    Feature is as designed. You want to add the -strict option
    % string is integer -strict ""
    0

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks