Hi,
every time I press the button I change the value by 0.1 sometimes instead of 1.3 it displays e.g. the value 1.3000000000091
depend on displaying only two digits after the decimal point
how to do it ?
Thx
every time I press the button I change the value by 0.1 sometimes instead of 1.3 it displays e.g. the value 1.3000000000091
depend on displaying only two digits after the decimal point
how to do it ?
Thx
B4X:
Sub dodaj_Click
Dim var As Double
odejmij.Visible=True
var = var + 0.1
wynik.text=var &" °C"
If var = 5 Then
Dodaj.Visible=False
End If
End Sub