...
Code Block |
---|
|
#include <stdio.h>
int main() {
float x = 1/3.0;
printf("Original : %e\n", x);
x = x * 7e-45;
printf("Denormalized? : %e\n", x);
x = x / 7e-45;
printf("Restored : %e\n", x);
}
|
This code produces the following output
...
Code Block |
---|
|
#include <stdio.h>
#include <stdio.h>
int main() {
float double x = 1/3.0;
printf("Original : %e\n", x);
x = x * 7e-45;
printf("Denormalized? : %e\n", x);
x = x / 7e-45;
printf("Restored : %e\n", x);
}
|
Code Block |
---|
Original : 3.333333e-01
Denormalized? : 2.333333e-45
Restored : 3.333333e-01
|
...