Beispiel #1
0
 public static int KokonaislukuPakottaen(string kehote, int min = int.MinValue, int max = int.MaxValue)
 {
     do
     {
         try
         {
             return(Syote.Kokonaisluku(kehote, min, max));
         }
         catch (Exception e)
         {
             WriteLine(e.Message);
         }
     } while (true);
 }
Beispiel #2
0
 public static double DesimaalilukuPakottaen(string kehote, int tarkkuus = -1)
 {
     do
     {
         try
         {
             return(Syote.Desimaaliluku(kehote, tarkkuus));
         }
         catch (Exception e)
         {
             WriteLine(e.Message);
         }
     } while (true);
 }
Beispiel #3
0
 public static DateTime PaivaysPakottaen(string kehote)
 {
     do
     {
         try
         {
             return(Syote.Paivays(kehote));
         }
         catch (Exception e)
         {
             WriteLine(e.Message);
         }
     } while (true);
 }