How can I display a calculated number in a label as a percentage?
Example: .243687 in my label, i want it to read 24.37%
labelpercent.text = ((label1.text - label2.text ) / label1.text)
i want labelpercent.text to be XX.XX%
in visual basic i used:
labelpercent = Format((label1 - label2) / label1, "percent")
that worked great in vb, i am very new to basic4android, still on trial version
Example: .243687 in my label, i want it to read 24.37%
labelpercent.text = ((label1.text - label2.text ) / label1.text)
i want labelpercent.text to be XX.XX%
in visual basic i used:
labelpercent = Format((label1 - label2) / label1, "percent")
that worked great in vb, i am very new to basic4android, still on trial version
Last edited: