Android Question Label Text from Stringbuilder, order of Append(ed) items causes difference

swChef

Active Member
Licensed User
Longtime User
If I do the following

B4X:
Dim fCtoFa As Float = 0.0
Dim fCtoFb As Float = 0.0
sb.Append(fCtoFa).Append(" ").Append(fCtoFb)
LabelA.Text = sb


If fCtoFa and fCtoFb are both 0, the Label displays "0 0".
If fCtoFa is 1.8 and fCtoFb is 32.0, the Label displays "1.8 523162842".
If I reverse the appends, doing fCtoFb first, then fCtoFa, then the Label displays "32 1.8".
I had also tried Dim fCtoFb As Int = 0, that made no difference.

?
 
Top