EAGLE Help

Typecast


The result type of an arithmetic expression can be explicitly converted to a different arithmetic type by applying a typecast to it.

The general syntax of a typecast is

type(expression)
where type is one of char, int or real, and expression is any arithmetic expression.

When typecasting a real expression to int, the fractional part of the value is truncated!

See also Type Conversions


Index Copyright © 2005 CadSoft Computer GmbH