aspose file troubles
The moose likes HTML and JavaScript and the fly likes Mod function in JS? The Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » HTML and JavaScript
Reply Bookmark "Mod function in JS?" Watch "Mod function in JS?" New topic
Author

Mod function in JS?

auvrm papu
Ranch Hand

Joined: Sep 01, 2005
Posts: 85
is there a mod function in JS?

like 10 % 2
or 10 mod 2
Bear Bibeault
Author and opinionated walrus
Sheriff

Joined: Jan 10, 2002
Posts: 39658
Did you try it?

[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
auvrm papu
Ranch Hand

Joined: Sep 01, 2005
Posts: 85
thanks Bear..

I did try..before..and got an error..so I just wanted to verify...
(just figured out that I had some other issues ...in the paranthesis..! )
Bear Bibeault
Author and opinionated walrus
Sheriff

Joined: Jan 10, 2002
Posts: 39658
You probably could have saved yourself some time by posting your code and the error that you were getting. You should also think about getting yourself a good JavaScript reference to answer these types of questions for you quickly.
 
jQuery in Action, 2nd edition
 
subject: Mod function in JS?
 
aspose file troubles