# Max Value

![](https://1839001309-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MBFTVMf7L6S67HOuqVC%2F-MScnwvubG4L68mVYHkQ%2F-MSd0LJ4Koab9rFArae2%2Fmax.gif?alt=media\&token=44c1442b-0d30-4438-b31d-9cad543cd724)

`max` field is used in order to avoid unexpected values within the Datastream. For every value that matches the data stream type and larger than `max` - `max` will value be used.

For example, you set the `max` value as `10` for your `Integer` data stream and hardware sends `11`. In that case `10` value will be used instead of `11`. The same rule applies for HTTPS API and any user input on the web or mobile application.
