digitalmars.D.learn - String to binary conversation
- Vino (5/5) Feb 05 2018 Hi All,
- Steven Schveighoffer (4/8) Feb 05 2018 import std.stdio, std.string;
- Steven Schveighoffer (4/12) Feb 05 2018 For leading 0s:
- Marc (3/11) Feb 08 2018 whoa, what isn't built-in in D...
Hi All, Request your help on how to convert a string to binary,eg "test" to 01110100 01100101 01110011 01110100. From, Vino.B
Feb 05 2018
On 2/5/18 1:27 PM, Vino wrote:Hi All, Request your help on how to convert a string to binary,eg "test" to 01110100 01100101 01110011 01110100.import std.stdio, std.string; writefln("%(%b %)", "test".representation); -Steve
Feb 05 2018
On 2/5/18 1:40 PM, Steven Schveighoffer wrote:On 2/5/18 1:27 PM, Vino wrote:For leading 0s: writefln("%(%08b %)", "test".representation); -SteveHi All, Request your help on how to convert a string to binary,eg "test" to 01110100 01100101 01110011 01110100.import std.stdio, std.string; writefln("%(%b %)", "test".representation);
Feb 05 2018
On Monday, 5 February 2018 at 18:40:40 UTC, Steven Schveighoffer wrote:On 2/5/18 1:27 PM, Vino wrote:whoa, what isn't built-in in D...Hi All, Request your help on how to convert a string to binary,eg "test" to 01110100 01100101 01110011 01110100.import std.stdio, std.string; writefln("%(%b %)", "test".representation); -Steve
Feb 08 2018