Class mr_format_number

Description

MR Format Number

  • author: Mark Nielsen

Located in /format/number.php (line 37)

mr_format_abstract
   |
   --mr_format_number
Variable Summary
int $decimals
mixed $isnull
string $units
Method Summary
mr_format_number __construct ([int $decimals = 2], [string $units = ''], [mixed $isnull = 0])
void format ( $value)
Variables
int $decimals (line 43)

Decimals to round to

  • access: protected
mixed $isnull (line 57)

If the value is NULL, then use this value

  • access: protected
string $units (line 50)

Units to use for the number

  • access: protected
Methods
Constructor __construct (line 67)

Constructor

  • author: Mark Nielsen
  • access: public
mr_format_number __construct ([int $decimals = 2], [string $units = ''], [mixed $isnull = 0])
  • int $decimals: Number of decimal places to use
  • string $units: Any units to append to the decimal
  • mixed $isnull: The value to use when the number is null
format (line 76)

Format number

  • access: public
void format ( $value)
  • $value

Redefinition of:
mr_format_abstract::format()
Format a value

Inherited Methods

Inherited From mr_format_abstract

mr_format_abstract::format()

Documentation generated on Thu, 28 Jun 2012 16:33:49 -0700 by phpDocumentor 1.4.3