In B4A and B4J we have the Round2(Number As Double, DecimalPlaces As Int)
Can you please add in B4i, if Is it possible.
Currently I use this workaround:
Can you please add in B4i, if Is it possible.
Currently I use this workaround:
B4X:
Private Sub Round2(Number As Double, DecimalPlaces As Int) As Double
Private str As String
str = NumberFormat(Number, 1, DecimalPlaces)
Number = str
Return Number
End Sub