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 6067391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:36:10+00:00 2026-05-23T09:36:10+00:00

In my debugger (VS2010), I can verify that I am sending the correct values

  • 0

In my debugger (VS2010), I can verify that I am sending the correct values to my SqlCeServer 3.5 database using an SqlCeCommand.

Looking at the data afterwards, I noticed that some of my float values are skewed.

  • When I enter 0.006, the database will store 0.0060000000521540642

  • When I enter 0.012, the database will store 0.0120000001043081

  • When I enter 0.011, the database will store 0.0109999999403954

Other float values (1.125, 0.875, 0.75) store just fine.

Is there something special I have to do to ensure my float values store correctly?

  • 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-23T09:36:11+00:00Added an answer on May 23, 2026 at 9:36 am

    Don’t use float: it’s approximate

    Use fixed precision: decimal/numeric

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

Sidebar

Related Questions

Is the remote debugger from VS2010 compatible with VS2008? That is, can connect from
A very weird situation... Using the debugger in VS2010 I can look up a
My Visual Studio 2008 debugger is showing integers as hexadecimals, how to correct that?
I am working on a collection debugger visualizer in VS2010 using C# and I
I am trying out the Historical Debugger in VS2010 Beta 1. I have it
Using the debugger in Netbeans 6.1, I'd like to step into a method of
Is there any debugger, like gdb or something else, aimed for C/C++, that runs
Environment: VS2010, SL4, RIA Services I have an SL4 UI that I developed against
I've a C++ project that I'm currently porting from VS2008 to VS2010. When I
I am using VS2010 and having an issue where upon opening my solution the

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.