title: How do I declare MAX_DOUBLE in VB6?
body: <p>According to the MSDN help for VB6</p>
  
  <blockquote>
    <p>Floating-point values can be expressed as mmmEeee or mmmDeee, in which mmm is the mantissa and eee is the exponent (a power of 10). The highest positive value of a Single data type is 3.402823E+38, or 3.4 times 10 to the 38th power; the highest positive value of a Double data type is 1.79769313486232D+308, or about 1.8 times 10 to the 308th power. Using D to separate the mantissa and exponent in a numeric literal causes the value to be treated as a Double data type. Likewise, using E in the same fashion treats the value as a Single data type.</p>
  </blockquote>
  
  <p>Now in the VB6 IDE I've tried to enter this </p>
  
  <pre><code>const MAX_DOUBLE as Double = 1.79769313486232D+308
  </code></pre>
  
  <p>however, as soon as I move away from that line the IDE throws an Error 6 (Overflow)</p>
  
  <blockquote>
    <p>An overflow results when you try to make an assignment that exceeds the limitations of the target of the assignment. ...</p>
  </blockquote>
  
  <p>So how do I get MAX_DOUBLE (and MIN_DOUBLE for that matter) defined?</p>