B4XFormatter is an alternative to NumberFormat / NumberFormat2 keywords. It is implemented in B4X and it is cross platform. There are two types in the library: B4XFormatter - The main class. B4XFormatData - A type with various configurable fields. The formatter holds a list of format data...
Good Day Everyone! i have little problem about my timer, when I subtract the lblTime itself by 1 the result is decimal numbers. how do i change it to whole numbers? Here is my Code: Sub Timer1_Tick CountDown = CountDown -1 lblSeconds.Text = CountDown If CountDown = 0 Then...
www.b4x.com
B4X:
Private Sub cInt(o As Object) As Int
If o > 0 Then
Return Floor(o)
Else
Return Ceil(o)
End If
End Sub
O bien que lo pases a un string y te quedes con la parte antes del punto.