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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Results of multiplying

Status
Not open for further replies.

vlitim

Programmer
Sep 2, 2000
393
GB
if I have two numbers say

1.234567 * 2.987 = 3.687651629

what happens if I only want to display the answer to two decimal places?

ie 3.69

??

 
dim result

result = round((1.234567 * 2.987), 2)

The 2 being the number of decimal places you would like to have the result rounded off to...

good luck! :)
Paul Prewett

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top