Documentation

math.php

Tags
noinspection

PhpDocSignatureInspection

Table of Contents

Functions

add()  : callable|float|int
Returns sum of two numbers.
subtract()  : callable|float|int
Returns subtraction of two numbers.
dec()  : callable|float|int
Decreases number by 1.
inc()  : callable|float|int
Increases number by 1.
divide()  : callable|float|int
Divides two numbers.
multiply()  : callable|float|int
Multiplies two numbers.
sum()  : callable|float|int
Returns sum of all elements.

Functions

add()

Returns sum of two numbers.

add(mixed ...$v) : callable|float|int

Returns float if at least one number is float.

Parameters
$v : mixed
Return values
callable|float|int

If all arguments are given result is returned. Passing just some or none will result in currying function return.

subtract()

Returns subtraction of two numbers.

subtract(mixed ...$v) : callable|float|int

Returns float if at least one number is float.

Parameters
$v : mixed
Return values
callable|float|int

If all arguments are given result is returned. Passing just some or none will result in currying function return.

dec()

Decreases number by 1.

dec(mixed ...$v) : callable|float|int

Return type is same as given number.

Parameters
$v : mixed
Return values
callable|float|int

If all arguments are given result is returned. Passing just some or none will result in currying function return.

inc()

Increases number by 1.

inc(mixed ...$v) : callable|float|int

Return type is same as given number.

Parameters
$v : mixed
Return values
callable|float|int

If all arguments are given result is returned. Passing just some or none will result in currying function return.

divide()

Divides two numbers.

divide(mixed ...$v) : callable|float|int

Returns float if at least one number is float.

Parameters
$v : mixed
Return values
callable|float|int

If all arguments are given result is returned. Passing just some or none will result in currying function return.

multiply()

Multiplies two numbers.

multiply(mixed ...$v) : callable|float|int

Returns float if at least one number is float.

Parameters
$v : mixed
Return values
callable|float|int

If all arguments are given result is returned. Passing just some or none will result in currying function return.

sum()

Returns sum of all elements.

sum(mixed ...$v) : callable|float|int

Returns float if at least one number is float.

Parameters
$v : mixed
Return values
callable|float|int

If all arguments are given result is returned. Passing just some or none will result in currying function return.


        
On this page

Search results