Scalar Types

The basic scalar types continuous, limited integer, wrap-around integer, signed discrete, unsigned discrete, and logical are value types. Whenever an element of such a type is used, not the element itself as an object, but its value is used. Automatic typecasting between the arithmetic types cont, sdisc and udisc is performed if necessary.

Prior to ASCETV6.4, only signed discrete and unsigned discrete were available as integer types. However, these types have several disadvantages.

To avoid these disadvantages, the limited integer and wrap-around integer types were introduced.

Note

With the introduction of the limited integer and wrap-around integer types, the types signed discrete and unsigned discrete have become deprecated. To use them, you must activate the editor optionUse signed/unsigned discrete types.

You can export components that use the limited integer and wrap-around integer types only in AMD format V6.4 and higher. An AMD format V6.3 or older will result in an export error.

Like complex types (classes), each basic type has an interface, i.e. methods to access it. For the basic model types these methods are fixed, the interface cannot be modified.

Scalar types have two simple access methods for the value stored in an element of the basic scalar type, i.e. for writing a new value to and reading the current value from the element:

Accessory methods in basic types are invoked automatically when an element name is used in an expression or when an assignment is performed. They do not have to be coded explicitly.

See also

Scalar Types: Continuous

Scalar Types: Limited Integer

Scalar Types: Wrap-Around Integer

Scalar Types: Logical

Scalar Types: Signed Discrete

Scalar Types: Unsigned Discrete

Converting sdisc/udisc to limitInt/wrapInt

Setting the Overflow Handling

Build Node (Project Properties)

Integer Arithmetic Node

Editor Options