Decimal Rounding

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Rob

    #1

    Decimal Rounding

    Assume a user enters 3.54875 into a text box how would you round it to 3
    decimal places ?

    Such that the number would be 3.549

    Thanks


  • Tom John

    #2
    Re: Decimal Rounding

    Math.Round(3.54 875, 3)

    On Thu, 5 Jul 2007 17:18:50 -0400, "Rob" <robc1@yahoo.co mwrote:
    >Assume a user enters 3.54875 into a text box how would you round it to 3
    >decimal places ?
    >
    >Such that the number would be 3.549
    >
    >Thanks
    >

    Comment

    Working...