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

Invert gmlscripts.pro

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.pro/license
{
    return !(argument1 mod argument0);
}

Contributors: Leif902

GitHub: View · Commits · Blame · Raw