Click or drag to resize
Json.NET

FloatFormatHandling Enumeration

 
Specifies float format handling options when writing special floating point numbers, e.g. NaN, PositiveInfinity and NegativeInfinity with JsonWriter.

Namespace:  Newtonsoft.Json
Assembly:  Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
Syntax
C#
public enum FloatFormatHandling
Members
  Member nameValueDescription
String0 Write special floating point values as strings in JSON, e.g. "NaN", "Infinity", "-Infinity".
Symbol1 Write special floating point values as symbols in JSON, e.g. NaN, Infinity, -Infinity. Note that this will produce non-valid JSON.
DefaultValue2 Write special floating point values as the property's default value in JSON, e.g. 0.0 for a Double property, null for a NullableT of Double property.
See Also