From 8ede1a2ecbb62577afd32996956c5feaf7ddf9b6 Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Wed, 5 Oct 2011 13:34:52 -0500 Subject: replacing the old HTML user guide with a Sphinx-managed user guide --- user_guide/helpers/number_helper.html | 113 ---------------------------------- 1 file changed, 113 deletions(-) delete mode 100644 user_guide/helpers/number_helper.html (limited to 'user_guide/helpers/number_helper.html') diff --git a/user_guide/helpers/number_helper.html b/user_guide/helpers/number_helper.html deleted file mode 100644 index 1ee7cbbdf..000000000 --- a/user_guide/helpers/number_helper.html +++ /dev/null @@ -1,113 +0,0 @@ - - - - - -Number Helper : CodeIgniter User Guide - - - - - - - - - - - - - - - - - - - - - -
- - - - - -

CodeIgniter User Guide Version 2.0.3

-
- - - - - - - - - -
- - -
- - - -
- - -

Number Helper

- -

The Number Helper file contains functions that help you work with numeric data.

- - -

Loading this Helper

- -

This helper is loaded using the following code:

-$this->load->helper('number'); - -

The following functions are available:

- - -

byte_format()

- -

Formats a numbers as bytes, based on size, and adds the appropriate suffix. Examples:

- - -echo byte_format(456); // Returns 456 Bytes
-echo byte_format(4567); // Returns 4.5 KB
-echo byte_format(45678); // Returns 44.6 KB
-echo byte_format(456789); // Returns 447.8 KB
-echo byte_format(3456789); // Returns 3.3 MB
-echo byte_format(12345678912345); // Returns 1.8 GB
-echo byte_format(123456789123456789); // Returns 11,228.3 TB -
- -

An optional second parameter allows you to set the precision of the result.

- - -echo byte_format(45678, 2); // Returns 44.61 KB - - -

-Note: -The text generated by this function is found in the following language file: language//number_lang.php -

- -
- - - - - - - \ No newline at end of file -- cgit v1.2.3-24-g4f1b