unsignedint j = level2.get_reads();
unsignedint k = level2.get_read_misses();
unsignedint l = level2.get_writes();
unsignedint m = level2.get_write_misses();
unsignedint o = level2.get_writebacks();
float h = (float)(b + d) / ((float)(a + c));
float n;
if (l2.size == (float)(0))
{
n = 0;
}
else
{
float n = (float)(k) / ((float)(j));
}
k = 5943, j = 16002. When the statement float n = (float)(k) / ((float)(j)); is not inside the else block I get n = 0.3714. However, inside the else block I get n = -107374176.0000. How can I get the correct value inside the else block?