Update DefaultFactory.cs

Without this change the System.Convert.ToDecimal(value) operation gives this error message.

    Trouble converting 0.0 to decimal. Input string was not in a correct format.