Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Programming (https://simplymaya.com/forum/forumdisplay.php?f=32)
-   -   remainder (https://simplymaya.com/forum/showthread.php?t=12326)

Dann 21-06-2004 06:41 PM

remainder
 
I once did a mel function that basically looked for the remainder after dividing one number by another.

Example:

if ( $X remainder 5 == 0)
{ blah blah blah}

This says that if x/5 has a raimder of 0, then execute blah blah blah.

The problem is, I cannot remember what to put in place of where I've written the word remainder, and I cannot find it in the docs again. Anyone recall this command?

Thanks,
-dann

Alan 22-06-2004 10:32 AM

put a percentage "%" sign. It's a modulus function.

Alan

Dann 22-06-2004 04:11 PM

That's the one I'm looking for.

Thanks!


All times are GMT. The time now is 05:41 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018