    

 ## On this page

  

 

 # setUpperBound

 Last update: 16.07.2025 

public [setUpperBound](set-upper-bound.md)(bound: [Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html))

sets the upper bound for the variable

#### Parameters

boundthe upper bound of the variable#### Throws

[ModelCenterException](../-model-center-exception/index.md)