Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4029788
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:23:21+00:00 2026-05-20T11:23:21+00:00

This is, at least for me, most bizzare Visual Studio 2010 behaviour ever. I’m

  • 0

This is, at least for me, most bizzare Visual Studio 2010 behaviour ever. I’m working on MVC3 project, I copied a line of code from another project (VS2010 also, MVC1 if it matters) which looks like this:

target_height = height * 1.1

when I paste it into MVC3 project, it gets expanded to

target_height = height * 1.1000000000000001

Now, if I type 1.2, it’s fine, nothing happens, but if I type 1.12 it is expanded to 1.1200000000000001.

Both target_height and height are integers. Why does one Visual Studio display 1.1 while other expands it to 1.1000000000000001?

What is going on???

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T11:23:22+00:00Added an answer on May 20, 2026 at 11:23 am

    I think it is autocomplete went crazy and started fixing floating points constant into “allowed” values. As written in http://accessmvp.com/Strive4Peace/VBA/VBA_L1_02_Crystal.pdf , VB autocomplete really tries to offer only “things that apply specifically to that data type”. int * double is understandably not truncated into int * int (automatic conversions always happen only as needed) and what you see is double representation of 1.1 or 1.12 (epsilon = 1.11e-16).

    I think it would still need some further checking or verification to learn exact conditions when this happens, but as I am not using VB.NET or MVCx this is not something I am willing to do.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I got this problem with AVAudioRecorder not working for me, at least from what
Is there a database which will satisfy all (or at least most) of this
So I had this working last week. At least, I thought I did! DataGridView
Most schemas' tables have last_updated_date and last_updated_by columns. I knew how to populate this
As a professional .net developer (at least this is how I earn my money)
I know there is no finder built into django for this (at least not
This should be easy (at least no one else seems to be having a
...at least to me. This code used to work fine. I'm pretty sure nothing
I sort of understand this, at least the function of generators (I've used them
It seems (at least that is our understanding of the issue at this point)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.