/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" ) ;-)) Regards, Phill W.
/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" ) ;-)) Regards, Phill W.
"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/ ;
Hiya I've just discovered something when writing numbers in scientific notation in source code. If you write something like 1.83607E-5 Visual Studio changes it to 0.0000183607 Is there a way to stop the Visual Studio environment from doing this? Thanks Geoff
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? Thanks kh
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( "1,34e+002", NumberStyles.Float, CultureInfo.InvariantCulture); 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( "1.34e+002", NumberStyles.Float); Still, to no avail. What exactly is wrong here? How do i remedy it? -- Regards 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 defind: 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.
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
Users browsing this forum: No registered users and 14 guest