Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Truncating Decimal Places

Status
Not open for further replies.

mike101

Programmer
Jul 20, 2001
169
US
I have an input and a calculation which creates an output. However, it makes many digits with the decimal point. I just want to have the single digit before the decimal point, and 2 digits after the decimal point (i.e. 1.23) instead of what I have now (i.e. 1.234567788) do you know how to limit the output for the variable? Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top