src/eMacros/Runtime/Arithmetic/Modulus.php
public function execute(array $arguments) {
    	if (empty($arguments)) throw new \BadFunctionCallException("Modulus: No arguments found.");
    	if (!isset($arguments[1])) throw new \BadFunctionCallException("Modulus: At least 2 arguments are required");
        return $arguments[0] % $arguments[1];
    }
public function execute(array $arguments) {
    	if (empty($arguments)) throw new \BadFunctionCallException("Modulus: No arguments found.");
    	if (!isset($arguments[1])) throw new \BadFunctionCallException("Modulus: At least 2 arguments are required");
        return $arguments[0] % $arguments[1];
    }
public function execute ( array $ arguments ) { if ( empty ( $ arguments ) ) throw new \ BadFunctionCallException ( "Modulus: No arguments found." ) ; if ( ! isset ( $ arguments [ 1 ] ) ) throw new \ BadFunctionCallException ( "Modulus: At least 2 arguments are required" ) ; return $ arguments [ 0 ] % $ arguments [ 1 ] ; }
Caculates the modulus between 2 values
Usage: (mod -1 5)
Returns: number
(non-PHPdoc)
@see \eMacros\Runtime\GenericFunction::execute()
Caculates the modulus between 2 values Usage : ( mod - 1 5 ) Returns : number ( non - PHPdoc )