You are currently viewing the GMLscripts.com static mirror. Forum access and script submissions are not available through this mirror.

Invert GMLscripts.com

is_factor

is_factor(divisor,value)
Returns true if a given divisor is a factor of a given value, false otherwise.
COPY/// is_factor(divisor,value)
//
//  Returns true if a given divisor is a factor of 
//  a given value, false otherwise.
//
//      divisor     divisor, real
//      value       value, real
//
/// GMLscripts.com/license
{
    return !(argument1 mod argument0);
}

Contributors: Leif902

GitHub: View · Commits · Blame · Raw