Writes the text representation of a decimal value to the text string or stream.
value The decimal value to write.
TypeReasonSystem.IO.IOException An I/O error occurred.
The TextWriter.FormatProvider property, if not null, specifies the culture-specific formatting.