Bug 146117 - Basic's Val and Str functions need clarification that they perform locale-independent conversion
Summary: Basic's Val and Str functions need clarification that they perform locale-ind...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Documentation (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Rafael Lima
URL:
Whiteboard: target:7.4.0
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-08 09:34 UTC by Mike Kaganski
Modified: 2022-05-05 13:50 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kaganski 2021-12-08 09:34:26 UTC
Documentation for Val [1] and Str [2] need to mention that these two perform *locale-independent* conversions, i.e. only comma as thousand separator, and dot as decimal separator, are accepted in string; converting number to string uses dot, and does not add thousand separators. This is unlike the CDbl/CStr, which are locale-dependent.

See also Basic Guide [3], where it is stated explicitly (for Val).

[1] https://help.libreoffice.org/7.3/en-US/text/sbasic/shared/03120104.html?DbPAR=BASIC
[2] https://help.libreoffice.org/7.3/en-US/text/sbasic/shared/03120103.html?DbPAR=BASIC
[3] https://wiki.openoffice.org/w/images/c/c1/BasicGuide_OOo3.2.0.pdf#page=36
Comment 1 Rafael Lima 2022-01-03 13:32:11 UTC
I can confirm this issue using pt-BR locale (comma as decimal separator and dot as thousands separator).

Help files should mention that.
Comment 2 Commit Notification 2022-01-03 16:34:14 UTC
Rafael Lima committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/help/commit/6eb2b4b5600c3102a1f90e1b4eb6a7e934e9c07d

Related tdf#146117 Refactor XHP files
Comment 3 Commit Notification 2022-01-13 12:21:54 UTC
Rafael Lima committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/help/commit/2c41ec4fa1f8b000c62c3df3f66e594818f63094

tdf#146117 Explain that Var/Str are locale-independent
Comment 4 Xisco Faulí 2022-05-02 14:51:13 UTC
A polite ping to Rafael Lima:
Is this bug fixed? if so, could you please close it as RESOLVED FIXED ?
Otherwise, Could you please explain what's missing?
Thanks