www.webdeveloper.com
Results 1 to 2 of 2

Thread: modulus

  1. #1
    Join Date
    Jun 2005
    Posts
    23

    modulus

    hi, i would like to ask a question about modulus.

    In ASP, we use modulus like Mod.

    let say, 22 Mod 3, then i will get 7.3333333.

    but i want to use something like % in programming c. meaning that i will get 1 if i do calculation 22/3.

    can anything replace Mod with something like % in programing c?

  2. #2
    Join Date
    Jun 2005
    Posts
    23

    i made a mistake..!

    sorry, i made a mistake...so, now 22 mod 3 is 1, so sorry.!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles