/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (OneSpace game = new OneSpace()) { game.Run(); } }
public static string DoubleToBinaryString(this double number) { StringBuilder result = new StringBuilder(); OneSpace oneSpace = new OneSpace(); int size = 64; oneSpace.doubleNumber = number; long doubleLikeLong = oneSpace.longNumber; for (int i = 0; i < size; i++) { result.Insert( 0, doubleLikeLong & 1 ); doubleLikeLong >>= 1; } return(result.ToString()); }