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