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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T18:42:00+00:00 2026-06-12T18:42:00+00:00

Possible Duplicate: Floating point inaccuracy examples I am working with parsing xlsx files and

  • 0

Possible Duplicate:
Floating point inaccuracy examples

I am working with parsing xlsx files and came across this behaviour. I don’t know how to explain it without describing the steps to reproduce the issue.

 1.  Create new blank Excel file (xlsx)
 2.  Type '8.8' into cell A1
 3.  Save file
 4.  Close Excel, rename file with .zip extension and open
 5.  Find sheet1.xml and open
 6.  Value for 8.8 in A1 will be saved as '8.8000000000000007'

This creates a problem for me, because when I parse Excel files, I want to get the value typed in, ‘8.8’ not ‘8.8000000000000007’.

Does anyone know why Excel does this?

EDIT: And how does Excel know when I open that file to only display ‘8.8’ and not ‘8.8000000000000007’? Does Excel round at a specific decimal place?

  • 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-12T18:42:02+00:00Added an answer on June 12, 2026 at 6:42 pm

    A floating point number which has a finite decimal representation doesn’t necessarily have a finite binary representation. The conversion is a lossy one.

    Because 8.8 is a fraction whose denominator (5) isn’t a power of 2, its binary floating-point representation is infinite. The underlying data type the application uses to store it (Excel in this case) is of finite precision, and the representation is thus truncated.

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

Sidebar

Related Questions

Possible Duplicate: Strange floating-point behaviour in a Java program I came across this weird
Possible Duplicate: Floating point inaccuracy examples PHP rounding issue - Is this a bug?
Possible Duplicate: Floating point inaccuracy examples When using the modulo operator in java I'm
Possible Duplicate: Floating point inaccuracy examples double a = 0.3; std::cout.precision(20); std::cout << a
Possible Duplicate: Retain precision with Doubles in java Floating point inaccuracy examples I know
Possible Duplicate: Floating point inaccuracy examples In my computer and using g++ I found
Possible Duplicate: Floating point inaccuracy examples Im having a problem... When i compile the
Possible Duplicate: Floating point inaccuracy examples double arithmetic and equality in Java I caught
Possible Duplicate: Floating point inaccuracy examples Floating point comparison Computers are meant to be
Possible Duplicate: Strange floating-point behaviour in a Java program Why does JSP/JSTL division by

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.