EAGLE Help Light

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!

Viz také Type Conversions

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