El 26/05/12 12:41, Brian Barker escribió:
At 17:14 25/05/2012 +0200, MiguelAngel wrote:
Maybe the mistake is in search for 0.000, it can't be found, because a
0.000 is always saved as 0, nonsignificant zeroes to the right/left of
decimal point are never saved.
Computers store numbers in a fixed-length format - however-many bytes.
So there are always the same number of binary digits stored - which
equates to a different but similarly (approximately) fixed number of
decimal digits stored (unless you choose multiple precision, of course).
So surely what you may think of as nonsignificant zeroes are not "never"
but *always* stored?
Brian Barker
I think not a fixed format, but a fixed length with eight bytes used to
store the number in memory, as result fourteen significant numbers.
In any case the user can't find 0.0000 or 000.00, we can search for 0.
In content.xml file one of the files in .ods file, we can see the saved
values in office:value tag and the representation of the value in text:p
tag.
- <table:table table:name="Sheet1" table:style-name="ta1">
<table:table-column table:style-name="co2"
table:default-cell-style-name="Default" />
- <table:table-row table:style-name="ro2">
- <table:table-cell table:style-name="ce1" office:value-type="float"
office:value="0">
<text:p>000,000</text:p>
</table:table-cell>
</table:table-row>
- <table:table-row table:style-name="ro2">
- <table:table-cell office:value-type="float" office:value="12345">
<text:p>12345</text:p>
</table:table-cell>
</table:table-row>
- <table:table-row table:style-name="ro2">
- <table:table-cell office:value-type="float" office:value="0.12345">
<text:p>0,12</text:p>
</table:table-cell>
</table:table-row>
- <table:table-row table:style-name="ro2">
- <table:table-cell office:value-type="float" office:value="123.123">
<text:p>123,12</text:p>
</table:table-cell>
</table:table-row>
- <table:table-row table:style-name="ro2">
- <table:table-cell table:style-name="ce2" office:value-type="float"
office:value="1.23456578901234E+015">
<text:p>1,23E+015</text:p>
</table:table-cell>
</table:table-row>
- <table:table-row table:style-name="ro2">
- <table:table-cell table:style-name="ce3" office:value-type="float"
office:value="1.23456578901234E+015">
<text:p>1234565789012340</text:p>
</table:table-cell>
</table:table-row>
</table:table>
Miguel Ángel.
* Inglés - detectado
* Inglés
* Español
* Gallego
* Italiano
* Inglés
* Español
* Gallego
* Italiano
<javascript:void(0);>
--
For unsubscribe instructions e-mail to: users+help@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.