Lang.Common Class
Namespace: Lang
Represents the common types in Polyspace Query Language
Since R2026a
Description
This class defines common types and their associated predicates
Predicates
| Type | Raisable | Printable |
|---|---|---|
Int — Alias for int | No | Yes |
Unsigned — Alias for unsigned int
| No | Yes |
This class defines these predicates that act on the objects of this class.
| Predicates | Description |
|---|---|
createInt(Lang.Int value, required Lang.Int &var) | Creates a new integer variable var and binds it to value. |
absoluteDifference(Lang.Int value1, Lang.Int value2, required Lang.Int &absDiff) | Computes abs(value1 - value2) and binds the result to absDiff. |
add(Lang.Int value1, Lang.Int value2, required Lang.Int &sum) | Returns sum as value1 +
value2. |
subtract(Lang.Int value1, Lang.Int value2, required Lang.Int &diff) | Returns diff as value1 -
value2. |
multiply(Lang.Int value1, Lang.Int value2, required Lang.Int &product) | Return product as value1 *
value2. |
divide(Lang.Int value1, Lang.Int value2, required Lang.Int "ient) | Returns quotient as value1 /
value2 (integer division). |
modulo(Lang.Int value1, Lang.Int value2, required Lang.Int &remainder) | Returns remainder as value1 %
value2. |
negate(Lang.Int value, required Lang.Int &negated) | Negates value and returns the result as
negated. |
min(Lang.Int value1, Lang.Int value2, required Lang.Int &result) | Returns result as the minimum of
value1 and value2. |
max(Lang.Int value1, Lang.Int value2, required Lang.Int &result) | Returns result as the maximum of
value1 and value2. |
toString(Lang.Int value, required Lang.String &s) | Converts value to a string and returns it as
s. |
toInt(Lang.Unsigned in, required Lang.Int &out) | Converts an unsigned integer in into an integer and
returns it as out. |
Version History
Introduced in R2026a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)