Documentation

Lcm
in package

Table of Contents

Methods

evaluate()  : int|string
LCM.
factors()  : array<string|int, mixed>
processPoweredFactors()  : void
testNonNulls()  : void

Methods

evaluate()

LCM.

public static evaluate(mixed ...$args) : int|string

Returns the lowest common multiplier of a series of numbers The least common multiple is the smallest positive integer that is a multiple of all integer arguments number1, number2, and so on. Use LCM to add fractions with different denominators.

Excel Function: LCM(number1[,number2[, ...]])

Parameters
$args : mixed

Data values

Return values
int|string

Lowest Common Multiplier, or a string containing an error

factors()

private static factors(float $value) : array<string|int, mixed>
Parameters
$value : float
Return values
array<string|int, mixed>

processPoweredFactors()

private static processPoweredFactors(array<string|int, mixed> &$allPoweredFactors, array<string|int, mixed> &$myPoweredFactors) : void
Parameters
$allPoweredFactors : array<string|int, mixed>
$myPoweredFactors : array<string|int, mixed>

testNonNulls()

private static testNonNulls(int $anyNonNulls) : void
Parameters
$anyNonNulls : int

        
On this page

Search results