double scientific



  • 1. 3d array but with strings instead of numbers
    Hi, i want to create somekind of information library for my forms in my application... since i have alot of forms on the same kind connecting to different server i would like someway to store each sessions information even if all client windows are closed... so im looking for something like a 3d array but where the values can be retrieved using strings instead... so i can store the session name and under that i can store variables and store what windows are open for that session and so on... Thanks
  • 2. vb enquiry
    i want to activte my form on pressing some code on any other window e.g i run my vb project then i opened a word document now i want that when i press ctrl+r on word window then i want to activate my form which is minimized on start bar please give the solution bye
  • 3. OT: treeview
    Hi Fergus, Good Morning, Did you not see that some guys from Microsoft were posting attachments? :-)) Cor
  • 4. OT: Enumerated Types?
    > Hi Piddey, are you Nobody? No that was Odeseus

Re: double scientific

Postby Phill. W » Sat, 23 Jul 2005 19:01:28 GMT

/Only/ by turning off all the other clever formatting stuff that VS does
for you, reducing it to a [pretty chunky] text editor.

Or you could try

    Val( "1.83607E-5" )


    Phill  W.

Re: double scientific

Postby Herfried K. Wagner [MVP] » Sat, 23 Jul 2005 20:33:06 GMT

"Geoff Jones" < XXXX@XXXXX.COM > schrieb:

This question has been discussed in this group some weeks ago.  The answer 
is no -- there is no way to turn off this particular formatting feature 
without turning off pretty listing.

 M S   Herfried K. Wagner
M V P  <URL: http://www.**--****.com/ ;
 V B   <URL: http://www.**--****.com/ ; 

Re: double scientific

Postby Geoff Jones » Sun, 24 Jul 2005 17:58:41 GMT

Many thanks guys


Similar Threads:

1.Q: double scientific


I've just discovered something when writing numbers in scientific notation 
in source code. If you write something like


Visual Studio changes it to


Is there a way to stop the Visual Studio environment from doing this?



2.Scientific Notation when serializing doubles

Hi. We put data on MSMQ queues using the Message ctor as follows:

Message myMessage = new Message(myObject);

As I understand it, this will use an XmlSerializer to serialize the body of 
the message when it is placed on the queue. We have noticed that if myObject 
contains doubles with small values (e.g. 0.0000000001) the serilized object 
will represent these values in scientific notation (e.g. 1E-10). 

Is this standard behaviour of the XmlSerializer, and is there any workaround?



3.Parsing scientific format String to double

I've got errors when parsing the string
"1.234e+002" to a double. I used the 
invariant culture to endure that the 
comma is not an issue and i pucked the
styles of the number to be float, to 
ensure that scientific format is OK.

   double dbl = double.Parse(

Still, i get errors. The error message
is rather undesciptive, telling me only
that the format of the string is wrong.

Of course, i also tried the following, 
just to make sure it's not THAT simple.

   double dbl = double.Parse(

Still, to no avail. What exactly is 
wrong here? How do i remedy it?

K Viltersten

4.Error in "double = double - double" statement

I am trying to compute the differnece between two dwords in visual basic and
keep getting the wrong value being computed.  I have the following structure

Public Type HighLowQuote
    TradeDate As String
    OpenPrice As Double
    HighPrice As Double
    LowPrice As Double
    ClosePrice As Double
    Volume As Long
    AdjClosePrice As Double
    AmtChange As Double
End Type

I create an instance of this type as 'q'.  I then do the following:
q.highprice = variant
q.lowprice = variant

at this point the locals variable window shows the values as:
q.highprice = 4.1
q.lowprice = 4

I then fall through the following code:
q.AmtChange = q.highprice - q.lowprice

q.amtchange is then valued at 9.99999999999996E-02 in the locals window when
I believe it should be valued at .1.

Why is the value not being set to .1?  Is there a change I can make to get
this calculation to work how I expect or is there some other way to perform
these calculations to get the results I am after?

Any help would be appreciated.  Thanks in advance.

5.'System.ArithmeticException was unhandled' at System.Double.CompareTo(Double value) when comparing with Double.NaN

6. Convert from VBA double to NET double

7. String w/ double quotes getting extra double quotes

8. Scientific and Standard Calculator User Interface and Coding in VB.NET

Return to VB.NET


Who is online

Users browsing this forum: No registered users and 14 guest