Results 1 to 3 of 3

Thread: What does % do?

  1. #1

    Thread Starter
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429

    What does % do?

    Forgive my JavaScript ignorance

    What does this "%" (operator??) do?

    (As you can appriciate its hard to search for a single character)

    Cheers,
    Bruce.
    Last edited by Bruce Fox; Sep 3rd, 2002 at 08:38 PM.

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    That would be the Javascript equivalent to VB's Mod operator.

    Code:
    3 % 2 = 1
    4 % 2 = 0
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3

    Thread Starter
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429
    OkleeDoklee

Posting Permissions

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



Click Here to Expand Forum to Full Width