Codex / mycred/balance / Filters / mycred_format_number


Used by the myCRED_Settings class to convert string based point values into either Integers or Floats, based on the number of decimals the point type uses. Mainly used internally before calculations.

Available since version 1.0


Param Type Required Description
$formatted int or float Yes

The point value formatted based on the point type setup.

$number int or float No

The original value.

$mycred obj No

The myCRED_Settings class object.

Used By

Package Prio. Description
Not used by any built-in package.

Last edited June 25, 2016