Android Question Currency format

grafix4all

Member
Licensed User
Longtime User
Im a newbie.
I cant figure out how do I do This

Dim MyMoney as Double
Dim Label1 as Label

MyMoney=199
label1.text=Mymoney

Label1 should show 199,00 (This is the Danish notation)
 

Douglas Farias

Expert
Licensed User
Longtime User
@Erel
if the value start with 0 how can i change this?
example i have 0.40 using your example the result is ",40" no 0,40
my ideia its check if start with , add 0 at start but i dont know if this is the correct way.

what can i make if value start with 0?
 
Upvote 0

Mahares

Expert
Licensed User
Longtime User
Change this:
B4X:
Dim s As String = NumberFormat2(d, 0, 2, 2, False)
to this:
B4X:
Dim s As String = NumberFormat2(d, 1, 2, 2, False)
 
Upvote 0
Top