Narrower primitive types can be cast to wider types without any effect on the magnitude of numeric values. However, whereas integers represent exact values, floating-point numbers have limited precision. Section 6.3.1.4 of the C standard Standard [ISO/IEC 9899:2011] states:
...
Search for vulnerabilities resulting from the violation of this rule on the CERT website.
Related Guidelines
...
...
...
Bibliography
...
] | Section 6.3.1.4 |
...
, "Real |
...
Floating and |
...
Integer" |
...
...