Results 1 to 18 of 18

Thread: * RESOLVED * How to declare the maximum value of a Double as a const

Threaded View

  1. #1

    Thread Starter
    PowerPoster cafeenman's Avatar
    Join Date
    Mar 2002
    Location
    Florida
    Posts
    2,819

    * RESOLVED * How to declare the maximum value of a Double as a const

    This code gives me an error. I'm not sure how to declare a const with an exponent. Does anyone know how to make this declaration? I want the maximum value that a double can hold as a constant for validation purposes.

    VB Code:
    1. public const dblMax as Double=1.79769313486232E308

    I also need the smallest negative value. This doesn't give me an error, but I'm not sure that it's not subtracting 308 from the value which would make it incorrect.

    VB Code:
    1. Public Const dblMin As Double = 4.94065645841247E-324
    Last edited by cafeenman; May 28th, 2002 at 05:28 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width