Static Public Member Functions |
static | round ($number, $nearest=5) |
| Round a number to the nearest nth.
|
static | null_fill ($number, $position) |
static | negation ($number, $to_number=NULL, $level=NULL, $op=1) |
| Negates number to opposite number / Negates number to given number Negates all number / Negates only numbers for given level and operand.
|
static | decimal_point ($number) |
Member Function Documentation
static num::decimal_point |
( |
|
$number | ) |
|
|
static |
- Author
- Michal Kliment Replace decimal comma with decimal point
- Parameters
-
- Returns
- string
static num::negation |
( |
|
$number, |
|
|
|
$to_number = NULL , |
|
|
|
$level = NULL , |
|
|
|
$op = 1 |
|
) |
| |
|
static |
Negates number to opposite number / Negates number to given number Negates all number / Negates only numbers for given level and operand.
- Author
- Michal Kliment
- Parameters
-
integer | $number | |
integer | $to_number | |
integer | $level | |
integer | $op | |
- Returns
- integer
static num::null_fill |
( |
|
$number, |
|
|
|
$position |
|
) |
| |
|
static |
- Author
- Michal Kliment Fill number with nulls (on start)
- Parameters
-
- Returns
- string
static num::round |
( |
|
$number, |
|
|
|
$nearest = 5 |
|
) |
| |
|
static |
Round a number to the nearest nth.
- Parameters
-
integer | number to round |
integer | number to round to |
- Returns
- integer
The documentation for this class was generated from the following file: