public static function parseFloat($value)
    {
        $returnValue = (float) 0.0;

        $returnValue = str_replace(',', '.', $value);
        $returnValue = preg_replace('/[^\-\d.]/', '', $returnValue);

        return (float) $returnValue;
    }
public static function parseFloat($value)
    {
        $returnValue = (float) 0.0;

        $returnValue = str_replace(',', '.', $value);
        $returnValue = preg_replace('/[^\-\d.]/', '', $returnValue);

        return (float) $returnValue;
    }
public static function parseFloat ( $ value ) { $ returnValue = ( float ) 0.0 ; $ returnValue = str_replace ( ',' , '.' , $ value ) ; $ returnValue = preg_replace ( '/[^\-\d.]/' , '' , $ returnValue ) ; return ( float ) $ returnValue ; }
Converts a string to a float, in order to support negative values.

@access public
@author Jehan Bihin, <jehan.bihin@tudor.lu>
@param  string value
@return float
Converts a string to a float in order to support negative values .