Skip navigation
Currently Being Moderated

'divisible by' help: how do you write 'a number is divisible by 6'?

Mar 23, 2012 4:07 AM

Hi. I have a timer going, that i want to reactivate every time the score is divisible by 6.

so, i wrote

public var number:uint;

 

if(score==number/6)

{

     number = 6;

     timer.start();

}

but that is wrong.

 

Can anyone help me write the notion of a number being divisible by 6.

 

thanks:)

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points