symfony/symfony — pull request #2557 by romainneutron (2011-11-03 18:39:15+00:00)
Title: Fix bug : dump float value in a context where locale sets comma as separator instead of dot

For example, if LC_ALL is set to fr_FR then float number got ',' as
separator ; example : 4,75

In order to follow Yaml Specifications
(http://yaml.org/type/float.html) we must replace the comma with a dot,
and specify the float type.

Code to reproduce the bug :

``` php

round(54 / 72, 4));

var_dump($tab);

$dumper = new Symfony\Component\Yaml\Dumper();
$dump = $dumper->dump($tab, 1);

var_dump($dump);

$parser = new Symfony\Component\Yaml\Parser();
$parsed = $parser->parse($dump);

var_dump($parsed);

assert($parsed === $tab);

```