Reference Guide

Adobe Acrobat PDF Lampshade 1.2 Reference (PDF)

interface.inc.php - User Interface Functions

fileSizeConverter

Required Parameters: int $size
Optional Parameters: int $precision
Returns: string
Description: This function converts an integer given in bytes to a reasonable decimal with abbreviation, such as KB, MB, GB, etc.

function fileSizeConverter($size, $precision = 2)

Copyright © 2001-2010 Think Computer Corporation. All Rights Reserved. Patent pending.

Authors of the impossible.™
Think