Converting text to double and vice-versa gives bizarres results.
OpenWindowEvent: aValue = 123.456 // aValue is a double
Button GetValue
Sub Action() Handles Action
TextField1.Text = aValue.ToText
TextField3.Text = Format(aValue, “#.##”)
End Sub
Button PassValue
Sub Action() Handles Action
var d as Double = TextField1.Text.ToDouble
d = d + 1
TextField2.Text = d.ToString
TextField4.Text = Format(d, “#.##”)
End Sub
in Windows, Xojo 2020r2.1 on a USA system. From your image, it looks like you are not on an English-based system so the problem might be unique to whatever your system’s language is.
I would suggest stepping through the code in the debugger to see exactly which statement converts incorrectly.