...
| Code Block |
|---|
#include <stdio.h>
int main(void) {
float f = 1.00f / 3.00f;
printf("Float is %.50f\n", f);
return 0;
}
|
...
| Code Block |
|---|
Float is 0.33333334326744079589843750000000000000000000000000 |
On 64-bit Windows XP, with Microsoft Visual C++ Compiler 9.0Studio 2012, it produces
| Code Block |
|---|
Float is 0.33333334326744080000000000000000000000000000000000 |
...
When compiled on an IA-32 Linux machine with GCC compiler 3.4.4 at optimization level 1 or higher, or on a test an IA-32 Windows XP machine 64 Windows machine with Microsoft Visual C++ Express 8.0Studio 2012 in Debug or Release mode, this code prints
| Code Block |
|---|
Comparison succeeds |
...