Use number_format instead of strval

strval() uses the locales decimal separator and comma separator but the BC extension only accepts american notation -> 124,234,53,2.353. If the wrong notation is supplied, the calculation will be wrong.

Using 10 as the amount of decimals number_format uses, because it looked like strval() did the same.

This fixes bug #1505