Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

enum Newtonsoft.​Json.​FloatFormatHandling

Assembly: Newtonsoft.Json

Specifies float format handling options when writing special floating point numbers, e.g. <see cref="F:System.Double.NaN" /> , <see cref="F:System.Double.PositiveInfinity" /> and <see cref="F:System.Double.NegativeInfinity" /> with <see cref="T:Newtonsoft.Json.JsonWriter" /> .

Values

String
Write special floating point values as strings in JSON, e.g. <c>"NaN"</c> , <c>"Infinity"</c> , <c>"-Infinity"</c> .
Symbol
Write special floating point values as symbols in JSON, e.g. <c>NaN</c> , <c>Infinity</c> , <c>-Infinity</c> . Note that this will produce non-valid JSON.
DefaultValue
Write special floating point values as the property's default value in JSON, e.g. 0.0 for a <see cref="T:System.Double" /> property, <c>null</c> for a <see cref="T:System.Nullable`1" /> of <see cref="T:System.Double" /> property.