Can someone confirm how Microsoft Excel 2007 internally represents numbers?

Posted by Jon on Stack Overflow See other posts from Stack Overflow or by Jon
Published on 2010-05-12T00:41:10Z Indexed on 2010/05/12 0:44 UTC
Read the original article Hit count: 243

Filed under:
|
|

I know the IEEE 754 floating point standard by heart as I had to learn it for an exam. I know exactly how floating point numbers are used and the problems that they can have. I can manually do any operation on the binary representation of floating point numbers.

However, I have not found a single source which unambiguously states that excel uses 64 bit floating point numbers to internally represent every single cell "type" in excel except for text. I have no idea whether some of the types use signed or unsigned integers and some use 64 bit floating point.

I have found literally trillions of articles which 1) describe floating point numbers and then 2) talk about being careful with excel because of floating point numbers. I have not found a single statement saying "all types are 64 bit floating point numbers except text". I have not found a single statement which says "changing the type of a cell only changes its visual representation and not its internal representation, unless you change the type from text to some other type which is not text or you change some other type which is not text to text".

This is literally all I want to know, and it's so simple and axiomatic that I am amazed that I can find trillions of articles and pages which talk around these statements but do not state them directly.

© Stack Overflow or respective owner

Related posts about excel

Related posts about excel-2007