...
Though a fully conforming implementation is free to create its own floating point system, there is a systems which garners overwhelming popularity and another very popular in legacy systems. The most popular implementation, used by the default options of Microsoft Visual Studio and GCC on Intel architectures, is IEEE 754. The second, generally considered legacy, system is commonly known as the "IBM floating point representation," or "IBM/370." Each of these systems have differing precisions and ranges of representable values. ThusAs a result, they do not represent all of the same values, are not binary compatible, and have differing associated error rates.
...
| Code Block |
|---|
#include <stdio.h>
int main(void) {
float f = 1.0 / 3.0;
printf("Float is %.50f\n", f);
return 0;
}
|
...
| Wiki Markup |
|---|
\[[Gough 2005|AA. C References#Gough 2005]\] [Section 8.6, "Floating-point issues"|http://www.network-theory.co.uk/docs/gccintro/gccintro_70.html] \[[IEEE 754 2006|AA. C References#IEEE 754 2006]\] \[[ISO/IEC 9899-:1999|AA. C References#ISO/IEC 9899-1999]\] Section 5.2.4.2.2, "Characteristics of floating types {{<float.h>}}" |
...