Summary: | FORMATTING Treat text fields as numbers in formulas | ||
---|---|---|---|
Product: | LibreOffice | Reporter: | Duncan Lithgow <duncan.lithgow> |
Component: | Spreadsheet | Assignee: | Eike Rathke <erack> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | enhancement | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
See Also: | https://bugs.freedesktop.org/show_bug.cgi?id=75834 | ||
Whiteboard: | target:4.3.0 | ||
i915 platform: | i915 features: |
Description
Duncan Lithgow
2011-05-12 04:43:11 UTC
Calc calculates with textual numbers if they represent integer values or ISO 8601 date values. It refuses to calculate with textual numbers if they contain separator characters, e.g. seem to be floating point values, as those are locale dependent and there is no way of telling what would be correct. Also in Excel you may get calculation errors if, for example, in an en_US locale the textual number is 1.000 and the document is loaded in an de_DE locale, as there the ',' comma is used as a decimal separator and the '.' is the group separator. In older Excel versions the results even differed and gave 1 in en_US and 1000 in de_DE ... So instead of producing different results in different locales, Calc is stricter in what it accepts in all locales. Thanks for your explanation Eike. If this is the way Calc users want it then that's fine for ODS files. But ... When we open an excel file we expect it to work - so we need to find a way to make this just work. - If we need to ask the user for the locale of the document let's do that - If we need to add comments on ambiguous cells let's do that I'm working on an option to select between different string conversion models during calculation. Eike Rathke committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=c52f3ea0eb327343b1945290c43d3b66f546dfe9 user selectable string conversion models, related fdo#37132 fdo#74622 The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback. Eike Rathke committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=af88ab2ee9167279cb70a577fb399d23f2ce136f unit test for string conversion feature, related fdo#37132 fdo#74622 The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback. Eike Rathke committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=bc43fc2fb27eab02a949832626ce1a9dc380ee6b added Formula/Syntax/StringConversion config item, fdo#37132 related The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.