Round Off Values

Results 1 to 2 of 2

Thread: Round Off Values

  1. #1
    Join Date
    Dec 1969

    Default Round Off Values

    How do i round of value to next hundred for eg : <BR><BR>96 to be rounded off to 100<BR>101 to be rounded off to 200<BR><BR>Thanx in Advance

  2. #2
    Join Date
    Dec 1969

    Default RE: Round Off Values

    Write a function:<BR><BR>1) Take current number of hundreds. (Int Function)<BR>2) If the original number divided by 100 has a remainder, then add one to the value from #1 (Mod Function)<BR>3) Multiply #1 by 100 and return<BR><BR>Craig.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts