https://bugs.documentfoundation.org/show_bug.cgi?id=166232
--- Comment #4 from Cameron <[email protected]> --- Created attachment 200440 --> https://bugs.documentfoundation.org/attachment.cgi?id=200440&action=edit gif showing step-by-step division & decimal separator bug on BASIC This GIF shows better the nature of the issue here: either there is a real bug in the dialogbox & textfield settings or I have missed something when configuring my textfield. In my example illustrated here, putting aside the "."/"," separator, I get different results when using Clng & CDec to convert the text value of my textfield into a decimal value: Inserted value: 2.02 Clng(PrixProduit_string) = 2 CDec(PrixProduit_string) = 0 Expected result: 2.02 //---Additional information about the code lines used in my macro-----// '--The "PrixProduit_string" variable was declared as followed: Dim PrixProduit_string As String PrixProduit_string = ActivationInterface.getControl("PrixProduit").Text '--PrixProduit is the name of the textfield in my dialogbox. //----------------------------------------------------// Either way, the rules related to the use of the decimal separator make it really complicated especially if the "." does not work in a textfield, as shown here. -- You are receiving this mail because: You are the assignee for the bug.
