UNB Components Code Reference

UnbLocale::Number method

Formats a number.

public static function UnbLocale::Number ($number, $decimals = 0, $html = false);

Parameters

number

(int/float/numeric) Number to format

decimals  –  optional, default: 0

(int) Number of decimal digits

html  –  optional, default: false

(bool) Prepare for HTML output

Return value

(string) Formatted number

Member of class: UnbLocale

Implementation file: locale.class.php, line 503

© 2011 Yves Goergen. UNB Components Homepage. Reference generated on 2011-02-22.