bitta javascript

Results 1 to 2 of 2

Thread: bitta javascript

  1. #1
    Join Date
    Dec 1969

    Default bitta javascript

    Hi all,<BR><BR>Um maths: how can you do a mod in javascript :)<BR><BR>i need to do:<BR><BR>if (intnumber mod 2 = 0){<BR>//do stuff<BR>}<BR><BR>thanks all :P<BR><BR>Jonny Tooze

  2. #2
    Join Date
    Dec 1969

    Default RE: bitta javascript

    No mod in javascript Math object. Try this:<BR><BR>if(Math.round (intNumber/2) == intNumber/2){<BR> //Do this....<BR>}<BR>

Posting Permissions

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