Rounding down a number

Last post 05-06-2009 7:51 AM by DarrellNorton. 1 replies.

Sort Posts:

  • Rounding down a number

    05-06-2009, 5:24 AM
    • Member
      point Member
    • ranjith583
    • Member since 05-05-2009, 5:53 AM
    • Posts 1

    Hi , Is there any function to Rounddown a number with decimalplaces? ie, a number like 2.5678 should become 2.56

    Thanks

    Ranjith 

     

     

  • Re: Rounding down a number

    05-06-2009, 7:51 AM
    Answer
    • All-Star
      54,455 point All-Star
    • DarrellNorton
    • Member since 04-04-2003, 11:49 AM
    • VA, USA
    • Posts 6,566
    • Moderator
      TrustedFriends-MVPs

    Use decimal.Floor().  See this thread for how to use it to round down to a specified number of digits.

    Darrell Norton, MVP
    Darrell Norton's Blog


    Please mark this post as answered if it helped you!
Page 1 of 1 (2 items)