Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d232206deb20d4140977d88d0964fe89ef8fc155
Ticket: 532537ffffffffffffffffffffffffffffffffff
Buggy Windows strtod() ?
User & Date: beric on 2002-03-25 20:09:07
Changes

  1. icomment:
    Logged In: YES 
    user_id=493507
    
    Being surprised to found in <float.h>
    #define DBL_MIN 2.2250738585072014e-308
    I have tried a c code declaring two double:
      2.63624325102e-308
      5.01538339097e-309
    It compile on both windows and linux, linux strtod()
    works with both string repr, windows (VC6) fails with
    errno == ERANGE for the second.
    
    The following page show that doubles have normalized
    and denormalized representation:
     http://babbage.cs.qc.edu/courses/cs341/IEEE-
    754references.html
    DBL_MIN is the minimum normalized double.
    
    It looks like windows's strtod() doesn't work on
    denormalized double, whereas linux does.
    
    
    
    
  2. login: "beric"
  3. mimetype: "text/plain"
  4. username: "beric"