Abstract Class JHtmlNumber

Description

HTML helper class for rendering numbers.

  • abstract:
  • since: 1.6

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


	
			
Method Summary
 static string bytes (integer $bytes, [string $unit = 'auto'], [integer $precision = 2])
Methods
static 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: 1.6
  • 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 Tue, 19 Nov 2013 15:09:39 +0100 by phpDocumentor 1.4.3