NumberFormat

sultan87

Active Member
Licensed User
Longtime User
Hello
dim valeur as int
valeur = 1234
numberformat(valeur,4,0) ---> 1,234
Why?
Best regards
 

rbsoft

Active Member
Licensed User
Longtime User
Perfectly correct. The comma serves as thousand delimiter.
One million would be shown as 1,000,000.

Rolf
 
Upvote 0

admac231

Active Member
Licensed User
Longtime User
The function of numberFormat is to convert a value into an easily readable (for users) string. If you just want to turn the integer into a string you don't need to do anything. So
B4X:
Dim myString As String
Dim valeur As Int
valeur = 1234 -> Valeur = 1234
myString = valeur -> myString = "1234"
 
Upvote 0

rbsoft

Active Member
Licensed User
Longtime User
Yes, this forum is quick! That's one of the nice things about it.

Rolf
 
Upvote 0
Top