Android Question Division Error?

Oldmanenzo

Member
Licensed User
Longtime User
i have the necessity convert from danish crone to euro the code is this

B4X:
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
 
Top