[sc-features] changed/CWS odff06 : Calculate with strings

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[sc-features] changed/CWS odff06 : Calculate with strings

eike.rathke


       Product: Spreadsheet
          Type: changed
         Title: Calculate with strings
     Posted by: [hidden email]
      Affected: sc
         TaskId: i5658
<http://www.openoffice.org/issues/show_bug.cgi?id=5658>
Effective from: CWS odff06
           CWS:
<http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=DEV300/odff06>
    CWS status: new


*Flags*
-------
API/ BASIC [ ]
Configuration [ ]
File format change [ ]
Help/ Guide [x]
Performance test [ ]
Translation [ ]
UI relevant [ ]


*Description*
-------------
While interpreting a formula expression, string content is now converted
to numeric values if conversion is unambiguous, or a #VALUE! error is
set if no unambiguous conversion is possible.

Converted are only integer numbers including exponent, and ISO 8601
dates and times in their extended formats with separators. Anything
else, especially fractional values with decimal separators or dates
other than ISO 8601 would be locale dependent and are not converted.
Leading and trailing blanks are ignored.

The following ISO 8601 formats are converted:

CCYY-MM-DD
CCYY-MM-DDThh:mm
CCYY-MM-DDThh:mm:ss
CCYY-MM-DDThh:mm:ss,s
CCYY-MM-DDThh:mm:ss.s
hh:mm
hh:mm:ss
hh:mm:ss,s
hh:mm:ss.s

The century CC may not be omitted and the two-digit year setting is not
taken into account. Instead of the T date and time separator exactly one
blank may be used.

If a date is given, it must be a valid Gregorian calendar date. In this
case the optional time must be in the range 00:00 to 23:59:59.99999...
If only time is given, it may have any value for hours, taking elapsed
time into account; minutes and seconds are limited to the value 59 as
well.


NOTES:

The conversion is done for single arguments, either referenced cell
content or inline string, cell range arguments are not affected, so
SUM(A1:A2) now will differ from A1+A2 if at least one of the cells
contain a convertible string, as in Excel ...

Because the conversion is also done for formula inline strings, such as
="1999-11-22"+42, calculations involving inline localized dates now
return an error, e.g. with "11/22/1999" or "22.11.1999".

Conversion on the fly naturally is significantly slower than calculating
with numeric values. Plus, as said, various values are not automatically
converted as the conversion may be ambiguous.

You may be interested
in the Convert Text to Number (CTN) extension available at
http://extensions.services.openoffice.org/project/CT2N
to interactively convert textual numbers to permanent numeric values.



Send feedback to [hidden email]



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]