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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:54:25+00:00 2026-05-27T14:54:25+00:00

When I debug my software in VS C++ by stepping the code I notice

  • 0

When I debug my software in VS C++ by stepping the code I notice that some float calculations show up as a number with a trailing dot, i.e.:

1232432.

One operation that lead up to this result is this:

float result = pow(10, a * 0.1f) / b

where a is a large negative number around -50 to -100 and b is most often around 1. I read some articles about problem with precision when it comes to floating-points. My question is just if the trailing dot is a Visual-Studio-way of telling me that the precision is very low on this number, i.e. in the variable result. If not, what does it mean?

This came up at work today and I remember that there was a problem for larger numbers so this did to occur every time (and by “this” I mean that trailing dot). But I do remember that it happened when there was seven digits in the number. Here they wright that the precision of floats are seven digits:

C++ Float Division and Precision

Can this be the thing and Visual Studio tells me this by putting a dot in the end?

I THINK I FOUND IT! It says “The mantissa is specified as a sequence of digits followed by a period”. What does the mantissa mean? Can this be different on a PC and when running the code on a DSP? Because the thing is that I get different results and the only thing that looks strange to me is this period-thing, since I don’t know what it means.

http://msdn.microsoft.com/en-us/library/tfh6f0w2(v=vs.71).aspx

  • 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-27T14:54:26+00:00Added an answer on May 27, 2026 at 2:54 pm

    If you’re referring to the “sig figs” convention where “4.0” means 4±0.1 and “4.00” means 4±0.01, then no, there’s no such concept in float or double. Numbers are always* stored with 24 or 53 significant bits (7.22 or 15.95 decimal digits) regardless of how many are actually “significant”.

    The trailing dot is just a decimal point without any digits after it (which is a legal C literal). It either means that

    • The value is 1232432.0 and they trimed the unnecessary trailing zero, OR
    • Everything is being rounded to 7 significant digits (in which case the true value might also be 1232431.5, 1232431.625, 1232431.75, 1232431.875, 1232432.125, 1232432.25, 1232432.375, or 1232432.5.)

    The real question is, why are you using float? double is the “normal” floating-point type in C(++), and float a memory-saving optimization.

    * Pedants will be quick to point out denormals, x87 80-bit intermediate values, etc.

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

Sidebar

Related Questions

To debug some JavaScript code, I am looking for JavaScript code (preferably just js,
I would like to debug and profile some 64-bit software performing unaligned accesses, like
I want to code/debug collaboratively on a shared linux terminal (so that both parties
GDB has a new version out that supports reverse debug (see http://www.gnu.org/software/gdb/news/reversible.html ). I
I am doing some maintenance on software and have a problem that I do
I'm looking for a peice of software which can help me debug issues on
The debug screen says that django does not have write access to the db.
I have written some software which uses Wifi as a possible internet-connection medium.. I
I'm writting a Software to get some Information about Server and i just want
Ted Faison in a podcast on event-based software design mentioned that sender and self

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.