Android Question B4XPlusMinus Decimal Point

bocker77

Active Member
Licensed User
Longtime User
I am using B4XPlusMinus and the returned Value has a decimal point (39.0). I am wanting just the 39 with no .0. I have tried formatting it out with no luck. Do I need to install B4XFormatter to do this or is there a way with B4XPlusMinus?

Thanks
 

Mahares

Expert
Licensed User
Longtime User
I have the same question. Can you post the solution please?
It looks like the OP has not been on the forum for a while. You can use these or combinations thereof.
B4X:
B4XPlusMinus4.Formatter.GetDefaultFormat.MaximumFractions = 0
    B4XPlusMinus4.Formatter.GetDefaultFormat.MinimumIntegers = 1
    B4XPlusMinus4.Formatter.GetDefaultFormat.MinimumFractions = 0
 
Upvote 1

bocker77

Active Member
Licensed User
Longtime User
Sorry I haven't been on the thread for awhile and I should have provided the solution that I found then. Maharas gave the correct solution.
 
Upvote 0
Top