math function

Results 1 to 2 of 2

Thread: math function

  1. #1
    Join Date
    Dec 1969

    Default math function

    How do i check on my asp page if the number is a non-decimal?<BR><BR>e.g.:<BR>for i = 1 to 10<BR>if i/2 = "PROBLEM: divisible by 2"<BR><BR>end if<BR>next<BR><BR>how do i know if i is divisible by 2?<BR><BR>thanks

  2. #2
    Join Date
    Dec 1969

    Default Easy...

    How would you in any language?<BR><BR>&#060;%<BR>if CInt(i/2) = CDbl(i/2) then<BR> &#039; i is divisible by 2<BR>end if<BR>%&#062;<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