Hi,
I am using the
iCircularProgress in my B4i App.
The value of the progress in this library is set by a float number.
I need to set the MAX value of the iCirclarProgress to be 1134.
I have created a integer in Process_Globals and I am wanting to set the iCirclarProgress value based on that number.
So far I have created a sub that will work out the percentage:
Sub GetPercent(value As String) As Float
Return NumberFormat(value / 1135 * 100,3,3)
End Sub
I am setting the 'value' of this sub from the integer in the Process_Globals.
So, the GetPercent for 576 should return 50 for 50%.
Log(GetPercent(576)) 'should log 50
How can I convert this value to be the value of the iCirclarProgress ?
(Need a way to convert a integer to a float number)