Visual Studio VB Virtualization Settings

Does anyone know how to stop the Visual Studio VB.NET editor from changing my wonderful scientific notation numbers to a disgusting decimal notation?

This seems to be part of "Pretty Listing" (one checkbox in the options). I would like to keep other functions pretty listing, I just don't want to look at 0.0000000000000001, when I could look at 1e-16

+3
source share
3 answers

I don’t think there is a way to do this. You can rely on implicit conversion CDbl()in this situation:

Dim myPrettyNumber As Double = "1E-16"

Or, if you just want to read easier, add a comment:

Dim myUglyNumber As Double = 0.0000000000000001 ' 1E-16
+1

.

Visual Basic , , , . , , Visual Basic .

, , . .

+1

Source: https://habr.com/ru/post/1727616/


All Articles