I have this code:
double timeTillTick = 15.0;
private void lower_Tick(object sender, EventArgs e)
{
if (timeTillClear > 0)
{
timeTillClear -= 0.1;
clearingIn10SecondsToolStripMenuItem.Text = "Clearing in " + timeTillClear + " seconds.";
}
else
{
lower.Enabled = false;
}
}
lower ticks once every 100 milliseconds. When it:
- Gets to 8
- Gets to 5
- Gets to 1
it increases by 0.000000000000001
. Why?