Skip to content

Instantly share code, notes, and snippets.

@run-dlang
Created November 2, 2023 07:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save run-dlang/77ae3b1788d112a1a2ccc111088e1ae7 to your computer and use it in GitHub Desktop.
Save run-dlang/77ae3b1788d112a1a2ccc111088e1ae7 to your computer and use it in GitHub Desktop.
Code shared from run.dlang.io.
import std;
void main()
{
  long  z = 0b101010;
  string zStr = format("%b",z);
  int  t = 1100;
  string tStr = format("%b",t);
   writeln("z = :",zStr);
   writeln(tStr);
  } 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment