<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Type conversion - Page 12 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=Type_conversion&amp;p=11">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Type_conversion&amp;p=13">3.Next</a>
</p>
<p>precision type, which cannot represent the integer 16777217 exactly, while a 32-bit integer type can. This can lead to unintuitive behavior, as demonstrated by the following code:</p>

<p> <syntaxhighlight lang="c"><br/>
#include <stdio.h></stdio.h></syntaxhighlight></p>

<p>int main(void) {    int my_int = 16777217;    float my_float = 16777216.0;    printf("The integer is: %d\n", my_int);    printf("The float is: %f\n", my_float);    printf("Their equality: %d\n", my_int == my_float);}</p>

<p>On compilers that implement floats as IEEE single</p><p>
<a accesskey="1" href="page.php?w=Type_conversion&amp;p=11">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Type_conversion&amp;p=13">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
