Convert a number to correct display
static public formatNumber ( $number, $edit = false, $forcedecimal ) : formatted | ||
$number | float Number to display | |
$edit | boolean display number for edition ? (id edit use . in all case) (false by default) | |
$forcedecimal | integer Force decimal number (do not use default value) (default -1) | |
return | formatted | number |