digitalmars.D.learn - how to print "111000" out into 0b111000
- michaelbi (1/1) Jan 19 2022 as captioned... thx.
- Brian Callahan (9/10) Jan 19 2022 ```d
- MichaelBi (3/13) Jan 19 2022 Got it, thanks
On Wednesday, 19 January 2022 at 15:01:29 UTC, michaelbi wrote:as captioned... thx.```d import std.stdio; import std.conv; void main() { writefln("0b%b", to!int("111000", 2)); } ```
Jan 19 2022
On Wednesday, 19 January 2022 at 15:41:31 UTC, Brian Callahan wrote:On Wednesday, 19 January 2022 at 15:01:29 UTC, michaelbi wrote:Got it, thanksas captioned... thx.```d import std.stdio; import std.conv; void main() { writefln("0b%b", to!int("111000", 2)); } ```
Jan 19 2022