Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Hi Olivier,

On Tuesday, 2011-11-22 16:23:50 -0200, Olivier Hallot wrote:

I found that the number of pre-defined numeric formats could be
improved to handle telephone number, postal codes, social security
numbers, and other locale numeric formats.

My question is: is it OK that I patch the xml file with these new fomats?

hmm.. well, yes, but.. ;-) it depends on what you want to achieve.

For one, numeric input is limited to 15 digits, more digits are
converted to scientific format and lose precision.

Second, for example, a format code of 00-000-000 will display the number
12345678 as 12-345-678, so if the user sees such values in a column and
wants to add a value or replace an existing one he might key in
12-345-678 that would result in a string instead of a number,
effectively leading to a mix of numbers and strings. Number format codes
are not input masks.

Third, the actual cell content does not preserve leading zeros while the
format may leave the impression it would. If that number was used as
a key to lookup items that had this key stored as strings with leading
zeros there would be no match.

I might have forgotten something.

Anyway, you'd probably want to decide on a case by case basis, YMMV.

  Eike

-- 
LibreOffice Calc developer. Number formatter stricken i18n transpositionizer.
GnuPG key 0x293C05FD : 997A 4C60 CE41 0149 0DB3  9E96 2F1A D073 293C 05FD

Attachment: pgpdSNxyPhgnW.pgp
Description: PGP signature


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.