Android Question Currency format

About how to show a value as currency

  • Great

    Votes: 2 100.0%
  • Great

    Votes: 2 100.0%

  • Total voters
    2

grafix4all

Member
Licensed 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
@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?
 

Mahares

Well Known Member
Licensed 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)
 
Top