Class JHtmlNumber

Description

HTML helper class for rendering numbers.

  • abstract:
  • since: 11.1

Located in /libraries/joomla/html/html/number.php (line 19)


	
			
Method Summary
static string bytes (integer $bytes, [string $unit = 'auto'], [integer $precision = 2])
Methods
static method bytes (line 36)

Converts bytes to more distinguishable formats such as: kilobytes, megabytes, etc.

By default, the proper format will automatically be chosen. However, one of the allowed unit types may also be used instead.

  • return: The number of bytes in the proper units.
  • since: 11.1
  • access: public
static string bytes (integer $bytes, [string $unit = 'auto'], [integer $precision = 2])
  • integer $bytes: The number of bytes.
  • string $unit: The type of unit to return.
  • integer $precision: The number of digits to be used after the decimal place.

Documentation generated on Mon, 25 Jun 2012 13:58:17 -0500 by phpDocumentor 1.4.4