Android Question NumberFormat without thousands indicator

swabygw

Active Member
Licensed User
Longtime User
I have the following:

B4X:
Dim a As Int = 10
Dim b As Int = 1000
Dim c, d As String
c = NumberFormat(a, 1, 0)
d = NumberFormat(b, 1, 0)

which yields "10" and "1,000". However, I need "10" and "1000". Is there a way to use NumberFormat to not get the thousands indicator? (and no leading zero's - the variable could be both under/over a thousand)
 
Top