Android Question NumberFormatException: For input string: After Upgrade TO 7.8 B4A

infow

Member
Licensed User
Longtime User
Hi,

I started to have a error today after upgrade from 6.5 to 7.8 Version of B4A.

java.lang.NumberFormatException: For input string: "1,651.4"

B4X:
        Dim x As Double
        x = Total + Cursor1.GetDouble("ACERTO") 
        Total =  NumberFormat(x,1,2)

All doing fine til today. There is any config somewhere that I mess up?

Thank you
 

infow

Member
Licensed User
Longtime User
Solved changing to Numberformat2.

It´s strange that worked till, now... Only today, seems the conversion of String to Double becomes sensible with the thousand separator...
 
Upvote 0
Top