Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ WriteFloatingPointConstant() [2/2]

void System.Text.Json.Utf8JsonWriter.WriteFloatingPointConstant ( float value)
inlinepackage

Definition at line 4745 of file Utf8JsonWriter.cs.

4746 {
4747 if (float.IsNaN(value))
4748 {
4749 WriteNumberValueAsStringUnescaped(JsonConstants.NaNValue);
4750 }
4751 else if (float.IsPositiveInfinity(value))
4752 {
4753 WriteNumberValueAsStringUnescaped(JsonConstants.PositiveInfinityValue);
4754 }
4755 else if (float.IsNegativeInfinity(value))
4756 {
4757 WriteNumberValueAsStringUnescaped(JsonConstants.NegativeInfinityValue);
4758 }
4759 else
4760 {
4762 }
4763 }
void WriteNumberValueAsStringUnescaped(ReadOnlySpan< byte > utf8Value)
void WriteNumberValue(decimal value)

References System.Text.Json.JsonConstants.NaNValue, System.Text.Json.JsonConstants.NegativeInfinityValue, System.Text.Json.JsonConstants.PositiveInfinityValue, System.value, System.Text.Json.Utf8JsonWriter.WriteNumberValue(), and System.Text.Json.Utf8JsonWriter.WriteNumberValueAsStringUnescaped().