To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=112880
                 Issue #|112880
                 Summary|CLng omit thousand separators
               Component|scripting
                 Version|DEV300m84
                Platform|All
                     URL|
              OS/Version|All
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P4
            Subcomponent|code
             Assigned to|kr
             Reported by|ristoi





------- Additional comments from [email protected] Fri Jul  2 10:07:31 
+0000 2010 -------
I tested with Basic macro (see below) how CLng handle thousand separator. I
would say that it handle badly put same way for many locales and operating 
systems.

Because result is incorrect I think this is defect not enhancement.  Standard
format string is cut to numbers before non numeric character no mater if that
character is letter, decimal separator (here no mistake I think), or thousand
separator (bad mistake).


Possible related problems:
Issue 70236
Issue 78144
Issue 21413
Issue 112874

Regards
Risto

PS. Here is the test macro:



REM  *****  BASIC  *****

Sub Main
REM testataan erottimia
DIM vLuku as Variant

vLuku = Format(12345,"Standard")

Print CLng(vLuku)                       '12

End Sub

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

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


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

Reply via email to