---
title: MLNumericConstraint
framework: coreml
role: symbol
role_heading: Class
path: coreml/mlnumericconstraint
---

# MLNumericConstraint

The value limitations of a number.

## Declaration

```swift
class MLNumericConstraint
```

## Topics

### Numeric Constraints

- [minNumber](coreml/mlnumericconstraint/minnumber.md)
- [maxNumber](coreml/mlnumericconstraint/maxnumber.md)
- [enumeratedNumbers](coreml/mlnumericconstraint/enumeratednumbers.md)

### Initializers

- [init(coder:)](coreml/mlnumericconstraint/init(coder:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Constraining numeric values

- [numericConstraint](coreml/mlparameterdescription/numericconstraint.md)
