Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 158b1677bfd28c691df998aae5de4edd8e6910df
Ticket: 532537ffffffffffffffffffffffffffffffffff
Buggy Windows strtod() ?
User & Date: nobody on 2002-03-20 16:03:35
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    Try following script under Window NT:
    
    proc testDouble {} {
        set a0 [expr {double(2.63624325102e-308)}]
        set b  [expr {double(0.19024736769)}]
        set a  $a0
    
        set count 30
        while {[incr count -1] > 0} {
            # just make a lose its double repr
            # string length $a
            puts "a = $a"
            set a [expr {$a*$b}]
        }
    }
    
    a is decreasing until 0.0.
    
    Now uncomment the [string length] line, and try it
    again. This gives the error message:
      can't use non-numeric string as operand of "*"
    (Is it possible to have "floating-point value too
    small to represent" ?)
    
    This work fine under Linux. Can I conclude that my
    Windows NT strtod() is buggy ?
    
    
  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: "11. Conversions from String"
  10. title changed to: "Buggy Windows strtod() ?"
  11. type changed to: "Bug"