Located in File: /AkActionView/helpers/number_helper.php
Method number_to_currency (line 72)
The +number+ can contain a level of precision using the +precision+ key; default is 2 The currency type can be set using the +unit+ key; default is "$" The unit separator can be set using the +separator+ key; default is "." The delimiter can be set using the +delimiter+ key; default is "," Examples: $number_helper->number_to_currency(1234567890.50) => $1,234,567,890.50 $number_helper->number_to_currency(1234567890.506) => $1,234,567,890.51 $number_helper->number_to_currency(1234567890.50, array('unit' => "£", 'separator' => ",", 'delimiter' => "")) => £1234567890,50 $number_helper->number_to_currency(1234567890.50, array('unit' => " €", 'separator' => ",", 'delimiter' => ".", 'unit_position' => 'right')) => 1.234.567.890,50 €
Method number_to_human_size (line 130)
Method number_to_percentage (line 96)
The +number+ can contain a level of precision using the +precision+ key; default is 2 The unit separator can be set using the +separator+ key; default is "." Examples: $number_helper->number_to_percentage(100) => 100.00% $number_helper->number_to_percentage(100, array('precision' => 0)) => 100% $number_helper->number_to_percentage(302.0576, array('precision' => 3)) => 302.058%
Method number_to_phone (line 37)
The area code can be surrounded by parentheses by setting +area_code+ to true; default is false The delimiter can be set using +delimiter+; default is "-" Examples: $number_helper->number_to_phone(1235551234) => 123-555-1234 $number_helper->number_to_phone(1235551234, array('area_code' => true)) => (123) 555-1234 $number_helper->number_to_phone(1235551234, array('delimiter' => " ")) => 123 555 1234 $number_helper->number_to_phone(1235551234, array('area_code' => true, 'extension' => 555)) => (123) 555-1234 x 555
Method number_with_delimiter (line 114)
Example: $number_helper->number_with_delimiter(12345678) => 12,345,678
Method number_with_precision (line 166)
Example: $number_helper->number_with_precision(111.2345) => 111.235
Method zeropad (line 187)
Example: $number_helper->zeropad(123, 6) => 000123