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!

SUMS - i can't round calculations to 2 decimal points?

Status
Not open for further replies.

shaun999

Technical User
Jun 11, 2001
4
GB
im having trouble rounding my calculations to 2 decimal points, when i do a multiplication calcuations (in actions, set variables) i get some some ridiculously large figures and i cant seem to round the decimal point to 2 figures

please help me! thanks, shaun
 
Code:
/:testnumber = 12345.098098098098;
/:rounded_to_two = int(/:testnumber *100)/100;

dave
davdesign@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top