Commit a0b47bec authored by Andreas Zwinkau's avatar Andreas Zwinkau
Browse files

Adding a smaller variant of fehler044

[r22546]
parent 8964dc61
#define IM 2147483648u
unsigned int current_random2 = 4247132568;
int imax2 = 403;
int main()
{
int ival2 = current_random2 & (IM - 1);
double intermediate = ((float) ival2 * (float)(imax2 + 0.999));
printf("%3.15e => %u\n", intermediate, (unsigned int) intermediate);
return 0;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment