Visual Studio VB pretty listing settings

前端 未结 3 678
北荒
北荒 2020-12-21 06:33

Does anyone know how to stop Visual Studio VB.NET editor from changing my beautiful scientific notation numbers into hideous decimal notation?

It seems that this is

3条回答
  •  隐瞒了意图╮
    2020-12-21 06:47

    I don't think there's a way to do it. You could rely on the implicit CDbl() conversion in this situation:

    Dim myPrettyNumber As Double = "1E-16"
    

    Or if you just want to be able to read it more easily, add a comment:

    Dim myUglyNumber As Double = 0.0000000000000001 ' 1E-16
    

提交回复
热议问题