FreenetIS
 All Classes Namespaces Functions Variables Pages
Static Public Member Functions | List of all members
num Class Reference

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
int$number
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
int$number
int$position
Returns
string
static num::round (   $number,
  $nearest = 5 
)
static

Round a number to the nearest nth.

Parameters
integernumber to round
integernumber to round to
Returns
integer

The documentation for this class was generated from the following file: