[Homework] C# Basics - Primitive Data Types and Variables - Problem {13*} - Comparing Floats
Здравейте колеги, 
имам проблем с кода ми и по-точно работи с цели числа, но в момнта, в който карам десетично и програмката ми се "ЧУПИ"!?!?
Ако може някой дами помогне преди да съм си счупил лаптопа ще съм мумного благодарен :)
А ето и кода ми:
using System;
    class Program
    {
       static void Main()
       {
          Console.WriteLine("Welcome to \" Comparing Floats\" program!");
          Console.Write("Plesae enter a floating point number: ");
          double input1 = double.Parse(Console.ReadLine());
          Console.Write("Plesae enter a second floating point number: ");
          double input2 = double.Parse(Console.ReadLine());
double eps = 0.000001; // Define the tolerance for variation in their values
          if (Math.Abs(input1 - input2) < eps)
        {
             Console.WriteLine("The 2 floating point numbers {0} and {1}", input1, input2 + " are similar or equal!");
        }
         else if (Math.Abs(input1 - input2) > eps)
        {
             Console.WriteLine("The 2 floating point numbers {0} and {1}", input1, input2 + " are not similar or equal!");
        }
        else 
        {
            Console.WriteLine("Invalid Input! Please try again!");
        }
  
    }
}