File: 159.htm

package info (click to toggle)
eagle 4.16-5
  • links: PTS
  • area: non-free
  • in suites: etch, etch-m68k
  • size: 36,508 kB
  • sloc: sh: 82; makefile: 32
file content (38 lines) | stat: -rw-r--r-- 1,095 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<html>
<head>
<title>EAGLE Help: Type Conversions</title>
</head>
<body bgcolor=white>
<font face=Helvetica,Arial>
<hr>
<i>EAGLE Help</i>
<h1><center>Type Conversions</center></h1>
<hr>
The result type of an arithmetic
<a href=208.htm>expression</a>, such as <tt>a + b</tt>,
where <tt>a</tt> and <tt>b</tt> are different arithmetic types,
is equal to the "larger" of the two operand types.
<p>
Arithmetic types are
<tt><a href=155.htm>char</a></tt>,
<tt><a href=156.htm>int</a></tt> and
<tt><a href=157.htm>real</a></tt>
(in that order). So if, e.g. <tt>a</tt> is of type
<tt><a href=156.htm>int</a></tt>
and <tt>b</tt> is of type
<tt><a href=157.htm>real</a></tt>,
the result of the expression <tt>a + b</tt> would be
<tt><a href=157.htm>real</a></tt>.
<p>
<b>See also</b> <a href=160.htm>Typecast</a>

<hr>
<table width=100% cellspacing=0 border=0><tr><td align=left><font face=Helvetica,Arial>
<a href=index.htm>Index</a>
</font></td><td align=right><font face=Helvetica,Arial size=-1>
<i>Copyright &copy; 2005 CadSoft Computer GmbH</i>
</font></td></tr></table>
<hr>
</font>
</body>
</html>