public static void TestIntegerArithmetic()
if(newValue / oldValue > SOME_CONSTANT)
Console.WriteLine("First comparison says it's bigger.");
Console.WriteLine("First comparison says it's not bigger.");
if(newValue > oldValue * SOME_CONSTANT)
Console.WriteLine("Second comparison says it's bigger.");
Console.WriteLine("Second comparison says it's not bigger.");
public static void TestFloatingPoint()
double SOME_CONSTANT = 0.33333333333333335;
if(newValue / oldValue >= SOME_CONSTANT)
Console.WriteLine("First comparison says it's bigger.");
Console.WriteLine("First comparison says it's not bigger.");
if(newValue >= oldValue * SOME_CONSTANT)
Console.WriteLine("Second comparison says it's bigger.");
Console.WriteLine("Second comparison says it's not bigger.");
public static void Main()