Created
November 2, 2023 07:21
-
-
Save run-dlang/77ae3b1788d112a1a2ccc111088e1ae7 to your computer and use it in GitHub Desktop.
Code shared from run.dlang.io.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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