D
Deleted member 103
Guest
Hi,
can anyone tell me why this differential output?
Log-output:
d=1.8
f=1.7999999523162842
can anyone tell me why this differential output?
B4X:
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("Layout1")
Dim d As Double
Dim f As Float
d = 1800 / 1000
f = 1800 / 1000
Log("d=" & d)
Log("f=" & f)
End Sub
Log-output:
d=1.8
f=1.7999999523162842