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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:01:35+00:00 2026-06-10T20:01:35+00:00

In the lunch break we started debating about the precision of the double value

  • 0

In the lunch break we started debating about the precision of the double value type.

My colleague thinks, it always has 15 places after the decimal point.

In my opinion one can’t tell, because IEEE 754 does not make assumptions
about this and it depends on where the first 1 is in the binary
representation. (i.e. the size of the number before the decimal point counts, too)

How can one make a more qualified statement?

  • 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-06-10T20:01:36+00:00Added an answer on June 10, 2026 at 8:01 pm

    As stated by the C# reference, the precision is from 15 to 16 digits (depending on the decimal values represented) before or after the decimal point.

    In short, you are right, it depends on the values before and after the decimal point.

    For example:

    • 12345678.1234567D //Next digit to the right will get rounded up
    • 1234567.12345678D //Next digit to the right will get rounded up

    Full sample at: http://ideone.com/eXvz3

    Also, trying to think about double value as fixed decimal values is not a good idea.

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

Sidebar

Related Questions

<c:if test=${not empty timeout}> <c:choose> <c:when test=${startclicked=='lunch'}> <div class=f-left lf_rt5> <c:if test=${startclicked !='break'}> <button
I have a global variable myval which is of String type. String[] Category={----SELECT----,BEVERAGES,BREAKFAST,LUNCH,DINNER,DESSERTS,APPETIZERS &
This question is a result of a lunch-time conversation with a co-worker...I've read questions
I'm trying to bash together a (very) rough MP3 player during my lunch hour,
i'm about to launch an advertisement campaign to promote my website, the thing is
I've added a Break on Exception breakpoint as discussed on previous threads and discussed
I'm a Java/J2ee programmer working in India. I'm very passionate about programming and I
I recently got started trying to use SFML. For some reason my simple program
I recently got started trying to use SFML. For some reason my simple program
I am currently using sequential workflows in Windows WF, but need to break up

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.