Android Question Show the 0 when a decimal is lower than 1

German Buchmuller

Member
Licensed User
Longtime User
Hi, ive been using some math in my app, and I noticed that when a number with decimals is lower than 1, then the result is showned without the 0. Example: Insteado of "0.5", I get ".5". How can I add the "0" before? Thanks!
 

DonManfred

Expert
Licensed User
Longtime User
Use Numberformat to format a Number.
 
Upvote 0
Top