Commit 07be116c authored by Sylvain's avatar Sylvain

Ajout float_to_money

parent c3846584
......@@ -235,3 +235,15 @@ if ( !function_exists('string_to_float')) {
}
}
if ( !function_exists('float_to_money')) {
/**
* Parsage d'une flottant en nombre monétaire €
* @param Float $value Valeur à virgule
* @return String "1 234,56 €"
*/
function float_to_money($value)
{
return number_format($value, 2, ',', ' ') . ' €';
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment