Correct:

 

Example

The following numeric example uses the modulo (%) operator:

trace(12%5); // traces 2
trace(4.3%2.1); // traces 0.0999999999999996
trace(4%4); // traces 0

 

 


From: JesterXL [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 15, 2005 3:14 PM
To: [EMAIL PROTECTED]
Subject: Re: [flexcoders] Isthere a mod function

 

I think % does that.  Says "modulo division"(sp?) in the docs, just guessing here.

 

----- Original Message -----

Sent: Tuesday, March 15, 2005 3:07 PM

Subject: [flexcoders] Is there a mod function

 

I am trying find a function that will divide two numbersand then return the remainder. I checked the math function to see if there was a mod function but there wasn't?


Reply via email to