Search

Truncation of float/double values in Visual Studio 2012 VC++ Debugger by Daniel_MP

Active

4
0
Sign in
to vote
Type: Bug
ID: 778528
Opened: 2/5/2013 1:29:54 AM
Access Restriction: Public
0
Workaround(s)
3
User(s) can reproduce this bug
In the debugger's watch list float and double inputs are truncated while the compiled code correctly puts out the decimal values.
Details (expand)

Visual Studio/Team Foundation Server/.NET Framework Tooling Version

Visual Studio 2012

Steps to reproduce

Add "0.5f", "0.99f", "1.4" ... to the watch list

Product Language

English

Operating System

Windows 7 SP1

Operating System Language

German

Actual results

The decimal places are zeroed, which results in an output of "0.00000 - float", "0.00000 - float" and "1.00000 - double" in the input example above

Expected results

"0.50000 - float", "0.99000 - float" and "1.40000 - double"
File Attachments
File Name Submitted By Submitted On File Size  
vs2012_float_trunc.png 2/5/2013 11 KB
ScreenShot03370.png 2/7/2013 71 KB
Sign in to post a comment.
Posted by ilya314 on 2/7/2013 at 5:07 AM
Windows 7 sp1 x64 (eng), regional settings = russia
I have same issue with editing double values.
Decimal symbol in russia region are ",", I change comma to point manually, restart VS but problem not solved.
After changing region to US all is ok.
Posted by Microsoft on 2/6/2013 at 11:43 AM
Thanks for the feedback. We will consider improving this experience in a future release.

Thanks,
Visual Studio Debugger Team
Posted by Microsoft on 2/5/2013 at 10:21 PM
Thank you for submitting feedback on Visual Studio and .NET Framework. Your issue has been routed to the appropriate VS development team for investigation. We will contact you if we require any additional information.
Posted by Microsoft on 2/5/2013 at 1:50 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.