<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 8.0.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/JSONDecoder/NonConformingFloatDecodingStrategy-swift.enum",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation11JSONDecoderC34NonConformingFloatDecodingStrategyO"
  },
  "title" : "JSONDecoder.NonConformingFloatDecodingStrategy"
}
-->

# JSONDecoder.NonConformingFloatDecodingStrategy

The strategies for encoding nonconforming floating-point numbers, also known as IEEE 754 exceptional values.

```
enum NonConformingFloatDecodingStrategy
```

## Overview

The IEEE 754 floating-point specification defines exceptional values, which include <doc://com.apple.documentation/documentation/Swift/FloatingPoint/infinity> and <doc://com.apple.documentation/documentation/Swift/FloatingPoint/nan>.

## Topics

### Exceptional Values

[`JSONDecoder.NonConformingFloatDecodingStrategy.convertFromString(positiveInfinity:negativeInfinity:nan:)`](/documentation/Foundation/JSONDecoder/NonConformingFloatDecodingStrategy-swift.enum/convertFromString(positiveInfinity:negativeInfinity:nan:))

The strategy that decodes exceptional floating-point values from a specified string representation.

[`JSONDecoder.NonConformingFloatDecodingStrategy.throw`](/documentation/Foundation/JSONDecoder/NonConformingFloatDecodingStrategy-swift.enum/throw)

The strategy that throws an error upon decoding an exceptional floating-point value.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)