Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 400 and 401]

(no description)

File Size: 162 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Operations:: (4 methods):
  mod()
  power()
  product()
  quotient()


Class: Operations  - X-Ref

mod($dividend, $divisor)   X-Ref
MOD.

param: mixed $dividend Dividend
param: mixed $divisor Divisor
return: array|float|int|string Remainder, or a string containing an error

power($x, $y)   X-Ref
POWER.

Computes x raised to the power y.

param: array|float|int $x
param: array|float|int $y
return: array|float|int|string The result, or a string containing an error

product(...$args)   X-Ref
PRODUCT.

PRODUCT returns the product of all the values and cells referenced in the argument list.

Excel Function:
PRODUCT(value1[,value2[, ...]])

param: mixed ...$args Data values
return: float|string

quotient($numerator, $denominator)   X-Ref
No description