Visual Studio VB漂亮列表设置 [英] Visual Studio VB pretty listing settings

查看:100
本文介绍了Visual Studio VB漂亮列表设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道如何阻止Visual Studio VB.NET编辑器将我漂亮的科学计数法数字更改为丑陋的十进制计数法吗?

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

这似乎是漂亮列表"的一部分(选项中的单个复选框).我想保留漂亮列表的其他功能,当我看到1e-16时,我只是不想盯着0.0000000000000001

It seems that this is part of "Pretty Listing" (single checkbox in the options). I'd like to keep the other features of pretty listing, I just don't want to have to stare at 0.0000000000000001 when I could be looking at 1e-16

推荐答案

我认为没有办法.在这种情况下,您可以依赖隐式CDbl()转换:

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

这篇关于Visual Studio VB漂亮列表设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆