class PercentFunction

This class provides some money functions for the expression parser.

Properties

static mixed|null $decimalPoint
static mixed|null $groupingSeparator
static mixed|null $groupingSize
static mixed|null $percentSymbol

Methods

static mixed
toString(mixed $percent)

function toString

static bool
toPercent(string $percent)

function toPercent

static bool
format(string $percent)

function format

static bool
isPercent(string $percent)

function isPercent

static void
init()

function init

Details

at line 83
static mixed toString(mixed $percent)

function toString

Parameters

mixed $percent

Return Value

mixed

at line 102
static bool toPercent(string $percent)

function toPercent

Parameters

string $percent

Return Value

bool

at line 116
static bool format(string $percent)

function format

Parameters

string $percent

Return Value

bool

at line 131
static bool isPercent(string $percent)

function isPercent

determines if percent is true

Parameters

string $percent

Return Value

bool the value of percent

at line 144
static protected void init()

function init

Return Value

void