what is the accuracy of single and double in vb.net

vb.net Laos
  • 12 years ago

     

  • 12 years ago

    Double: 

    -1.79769313486231570E+308 through -4.94065645841246544E-324 for negative values;

    4.94065645841246544E-324 through 1.79769313486231570E+308 for positive values

     

    Single:

    -3.4028235E+38 through -1.401298E-45 for negative values;

    1.401298E-45 through 3.4028235E+38 for positive values

     

    I simply looked them up in the  VB.NET help file.

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“It is practically impossible to teach good programming style to students that have had prior exposure to BASIC. As potential programmers, they are mentally mutilated beyond hope of regeneration.” - E. W. Dijkstra