Can I control the number of digits displayed in debugger windows for float and double variables?

后端 未结 6 1973
别跟我提以往
别跟我提以往 2021-01-08 00:51

In Visual Studio 2012, I\'m looking for a way to customize the default display of floating point types in the Autos, Locals, and Watch windows. I\'m familiar with the Native

6条回答
  •  误落风尘
    2021-01-08 01:43

    Although it doesn't appear to be supported in their documentation, we have used the following definition to shorten the numbers (in VS 2015):

      
        {vectorX,g}, {vectorY,g}, {vectorZ,g}
      
    

提交回复
热议问题