To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=91121 Issue #|91121 Summary|Basic Currency type imposes its own formatting Component|scripting Version|OOo 2.4.1 Platform|All URL| OS/Version|Windows XP Status|NEW Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P3 Subcomponent|code Assigned to|kr Reported by|bmarcelly
------- Additional comments from [EMAIL PROTECTED] Fri Jun 27 06:49:57 +0000 2008 ------- These results have been found in fr-FR and de-DE linguistic environment. Write this short macro: dim v as currency dim a as string, b as string, c as string, d as string v = 12345.6 a = Str(v) b = CStr(v) c = Format(v, "Currency") d = Format(v, "# ##0.0000 \€") MsgBox(a & chr(13) & b & chr(13) & c & chr(13) & d) With fr-FR environment we get this (correct) result: 12345.6 12345,6 12 345,60 € 12 345,6000 € Change the first line of the macro: declare v as Currency instead of Double. With fr-FR environment we now get this result: 12345.6000 12345.6000 12345.6000 12345.6000 As you can see, CStr does not obey the decimal separator, Format does not obey the formatting strings. --------------------------------------------------------------------- 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]