Android Question Truncate decimals

Discussion in 'Android Questions' started by Jose Swett, Dec 27, 2018.

  1. Jose Swett

    Jose Swett New Member Licensed User

    I can not find the function to truncate decimals, equivalent to Fix of VB6.0
  2. DonManfred

    DonManfred Expert Licensed User

    Use Numberformat to format a output.
    Erel and Peter Simpson like this.
  3. Brian Dean

    Brian Dean Member Licensed User

    I think that you might be looking for Floor(). This removes the decimal part of a number in a calculation.
  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