Apache OpenOffice (AOO) Bugzilla – Issue 123635
[Enhancement] Function VALUE with optional locale argument
Last modified: 2017-04-13 12:47:16 UTC
VALUE returns different results under different locale settings. How about an optional second argument to override the global locale? =VALUE("1.234";"en-UK") => 1.234 =VALUE("1.234";"de-DE") => 1234 =VALUE("1,234";"de-DE") => 1.234 =VALUE("1/2/34";"en-UK") => 1934-02-01 =VALUE("1/2/34";"en-US") => 1934-01-02
Is this an enhancement request? Can you please attach real life example?
Created attachment 82297 [details] ODF Spreadsheet Demonstrating locale dependent conversion from text to number and number to text. The same formulas return different results in different locale context.
Thank you. Confirmed with AOO410m1(Build:9750) - Rev. 1557669 2014-01-14_04:11:13 - Rev. 1557927 Debian
Additional notes: Applies to VALUE, DATEVALUE, TIMEVALUE, TEXT which could all have an optional locale argument (POSIX strings like "en-US") with a help file listing the supported locales. If the optional argument defaults to the current office locale, existing formulas won't break. For many users importing text and conversion from text to number are most difficult tasks and sometimes they do not really understand the problem nor the existing solutions. Working conversion formulas may help a little bit in this mine field.
+1