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

Discussion in 'Android Questions' started by German Buchmuller, Feb 11, 2018.

  1. German Buchmuller

    German Buchmuller Member Licensed 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!
     
  2. DonManfred

    DonManfred Expert Licensed User

    Use Numberformat to format a Number.
     
  3. German Buchmuller

    German Buchmuller Member Licensed User

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice