Oldmanenzo Member Licensed User Longtime User Feb 18, 2016 #1 i have the necessity convert from danish crone to euro the code is this Code: Copy Sub TxtCorone_TextChanged (Old As String, New As String) If New <>"" And New <>0 Then Dim value As Double = New / 7,4629 TxtEuro.Text = value Else TxtEuro.Text ="0" End If End Sub if i write 5000 in the txtcorone the result in txteuro (not editable) is 714,285714 but this is wrong because the result with a normal calculator is 669,980848648
i have the necessity convert from danish crone to euro the code is this Code: Copy Sub TxtCorone_TextChanged (Old As String, New As String) If New <>"" And New <>0 Then Dim value As Double = New / 7,4629 TxtEuro.Text = value Else TxtEuro.Text ="0" End If End Sub if i write 5000 in the txtcorone the result in txteuro (not editable) is 714,285714 but this is wrong because the result with a normal calculator is 669,980848648
eurojam Well-Known Member Licensed User Longtime User Feb 18, 2016 #2 your decimal delimiter is wrong, should be . (point) instead of , (comma) Upvote 0
Oldmanenzo Member Licensed User Longtime User Feb 18, 2016 #3 eurojam said: your decimal delimiter is wrong, should be . (point) instead of , (comma) Click to expand... Now it's right........thanks Upvote 0
eurojam said: your decimal delimiter is wrong, should be . (point) instead of , (comma) Click to expand... Now it's right........thanks