is_factor

Downloadis_factor(divisor,value)   Returns true if the given divisor is a factor of the given value.
/*
**  Usage:
**      is_factor(divisor,value)
**
**  Arguments:
**      divisor     a divisor, real
**      value       a value, real
**
**  Returns:
**      TRUE if the given divisor is a factor of the given value,
**      FALSE otherwise
**
**  GMLscripts.com
*/

{
    return !(argument1 mod argument0);
}

Click if you've used this script[Please Login]
Projects: 6


comments powered by Disqus