EAGLE Help Light

Type Conversions

The result type of an arithmetic expression, such as a + b, where a and b are different arithmetic types, is equal to the "larger" of the two operand types.

Arithmetic types are char, int and real (in that order). So if, e.g. a is of type int and b is of type real, the result of the expression a + b would be real.

Viz také Typecast

OBSAH Translation © 2001 ELCAD v.o.s., Copyright © 2001 CadSoft Computer GmbH