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

Proper command for rounding up a number {VBscript question}

Status
Not open for further replies.

Karl Blessing

Programmer
Feb 25, 2000
2,936
US
I would like to take a number, devide it by 10, then round it upto the next number if any remainders were found. but dont seem to know the proper command if i were to round it down, I'd just use abs(), but using round() well it just seems to round down too.<br><br>for those of you who want to know the purpose to this, the number being devided is the number of records, each page has 10 records, when I round up because there is some extra, the final number is the number of pages all the records occupy <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in , or have messed with : VC++, Borland C++ Builder, VJ++6(starting),VB-Dos, VB1 thru VB6, Delphi 3 pro, Borland C++ 3(DOS), Borland C++ 4.5, HTML, ASP(somewhat), QBasic(least i didnt start with COBOL)
 
oh did I mention this isnt client-side scripting, so if you know any easy commands for this for server-side (as in Active Server Pages) feel free to say so as well. <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in , or have messed with : VC++, Borland C++ Builder, VJ++6(starting),VB-Dos, VB1 thru VB6, Delphi 3 pro, Borland C++ 3(DOS), Borland C++ 4.5, HTML, ASP(somewhat), QBasic(least i didnt start with COBOL)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top