Пример #1
0
 private static Double ToDouble(TotemNumber num)
 {
     if (num.isFloatingPoint)
     {
         return(num.fValue);
     }
     else
     {
         return((double)num.lValue);
     }
 }
Пример #2
0
 private static Double ToDouble(TotemNumber num)
 {
     if (num.isFloatingPoint)
         return num.fValue;
     else
         return (double)num.lValue;
 }
Пример #3
0
 static void TotemFor()
 {
     for (TotemValue i = new TotemNumber(0L); (bool)(i < new TotemNumber(10L)); i++)
         Console.WriteLine(i);
 }
Пример #4
0
 static void ForTotemLoops()
 {
     for (TotemValue i = new TotemNumber(0); (bool)(i < new TotemNumber(10)); i++)
         Console.WriteLine(i);
 }