Adventure Documentation

Numbers extends PlatformUtility
in package

Provides access to numbers utility functions.

Tags

Table of Contents

format()  : string
Format a number using the locale for the current session.
isInfinite()  : bool
Check if number is infinite
isNAN()  : bool
Check if number is
isNumeric()  : bool
Check if variable is numeric
isValid()  : bool
Check if number is valid and can be calculated

Methods

format()

Format a number using the locale for the current session.

public format([float|null $value = null ]) : string
Parameters
$value : float|null = null
Tags
Return values
string

isInfinite()

Check if number is infinite

public isInfinite(float $number) : bool
Parameters
$number : float
Tags
see
is_infinite()
Return values
bool

isNAN()

Check if number is

public isNAN(float $number) : bool
Parameters
$number : float
Tags
see
is_NAN()
Return values
bool

isNumeric()

Check if variable is numeric

public isNumeric([mixed $var = null ]) : bool
Parameters
$var : mixed = null
Tags
see
is_numeric()
Return values
bool

isValid()

Check if number is valid and can be calculated

public isValid(float $number) : bool
Parameters
$number : float
Tags
Return values
bool

        

Search results