    

 ## On this page

  

 

 # setUnits

 Last update: 16.07.2025 

public [setUnits](set-units.md)(units: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html))

sets the units for the variable

#### Parameters

unitsthe units of the variable#### Throws

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