Skip to content

Conversation

@blizzardengle
Copy link

Scientific Notation Bug / Format Bugs:
Many OBS applications save cells with long numbers in a loose scientific notation format, this means any cell with a long, float, or double length number will be transformed into a relatively close but not correct scientific notation.

Example:
612205820123 becomes 6.12206E+11 but so does any number of the same length if it starts with 6122058. This effectually destroys tracking numbers that do not include letters for example (FedEx).

Easy Solution:
The real number is saved as an office:value attribute attached to the table cell. If a office:value attribute is found on a table cell we simply need to use that value instead to avoid format bugs like this one; as well as any other bugs I may not have found yet, after all they (the OBS standards people) created the office:value attribute for a reason.

PS:
@nuovo - It seems pull request are going unanswered. I don't mind taking over this repo if you don't have time?

Many OBS applications save cells with long numbers in a loose scientific notation format, this means any cell with a float or double length number will be transformed into a relatively close but not correct scientific notation. When reading this file later if you attempt to use that number from the cell it will be completely different than what you actually put in it since it was saved with an incorrect scientific notation. The real number is saved as an office:value attribute attached to the table cell. If a office:value attribute is found on a cell we should use that value instead to avoid format bugs like long numbers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant