NumberFormat error over 1,000

anaylor01

Well-Known Member
Licensed User
Longtime User
I am getting an error on this code when it goes over a 1000.
lblscore.Text = NumberFormat(lblscore.Text + 10,0,0)
 

Smee

Well-Known Member
Licensed User
Longtime User
@ NJDude

That works. Thanks very much. I could not recall seeing anything in the documentation about that
 
Upvote 0

Smee

Well-Known Member
Licensed User
Longtime User
Whoops, No it does'nt work. I had it in a catch try block. When i removed i got the error again

B4X:
CustTotal=NumberFormat2((CustTotal),0,2,2,True)

java.lang.NumberFormatException: Invalid double: "1,117.78"
at org.apache.harmony.luni.util.FloatingPointParser.invalidReal(FloatingPointParser.java:78)
 
Upvote 0
Top