Why doesn't this add up?

  • Thread starter Thread starter chris-s
  • Start date Start date
C

chris-s

Why doesn't this code snippet produce the expected output?

float f1 = 61.65f;

float f2 = 99999.00f;

float t1 = 0.0f;

t1 += f1;

t1 += f2;

MessageBox.Show(t1.ToString("#0.00"));



Chris
 
Back
Top