<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreML",
  "identifier" : "/documentation/CoreML/MLNumericConstraint",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Core ML"
    ],
    "preciseIdentifier" : "c:objc(cs)MLNumericConstraint"
  },
  "title" : "MLNumericConstraint"
}
-->

# MLNumericConstraint

The value limitations of a number.

```
class MLNumericConstraint
```

## Topics

### Numeric Constraints

[`minNumber`](/documentation/CoreML/MLNumericConstraint/minNumber)

The smallest numerical value allowed by this constraint.

[`maxNumber`](/documentation/CoreML/MLNumericConstraint/maxNumber)

The largest numerical value allowed by this constraint.

[`enumeratedNumbers`](/documentation/CoreML/MLNumericConstraint/enumeratedNumbers)

A set of the numbers allowed in this constraint.



---

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)