Le 03/07/2011 20:14, Andrew Douglas Pitonyak a écrit :
StarBasic converts a string representations of a number in a locale
specific way. In other words, in the USA, I expect "12.5" to round to
an integer as 13. In Germany, I expect "12,5" to round to 13. I have a
report of this NOT working on Linux in Germany. I am interested in the
results from a few different languages, locales, and operating
systems. Note that this works for me with the latest OOo release and
the latest LO release candidate 3 on 64-bit Fedora on en-US.
Dim l As Long
Dim d As Double
l = CLng("12.5") : Print l ' Expect 13 in en-US
l = CLng("12,5") : Print l
d = cdbl("12.5") : Print d
d = cdbl("12,5") : Print d
Based on responses, I will open a bug report
Hello Andrew,
running LibreOffice 3.3.0
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4
french version
result: 13 12 error invalid values 12,5
you seem to have reason.
cheers,
Jacques CHAILLET
april Member
http://www.april.org
--
Unsubscribe instructions: E-mail to [email protected]
In case of problems unsubscribing, write to [email protected]
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted