digitalmars.D.learn - decimal to binary
- snow (4/4) Jun 10 2013 Hello,
- Infiltrator (5/9) Jun 10 2013 http://dlang.org/phobos/std_string.html#.format with format
- John Colvin (6/10) Jun 10 2013 I presume your decimal is in a string?
Hello, I searched a lot in the docs and search, but couldn't find anything so far. Is there a funtion, which converts my decimal number into a binary?
Jun 10 2013
On Monday, 10 June 2013 at 09:46:42 UTC, snow wrote:Hello, I searched a lot in the docs and search, but couldn't find anything so far. Is there a funtion, which converts my decimal number into a binary?string "%b". Or if you're printing, you can go straight with
Jun 10 2013
On Monday, 10 June 2013 at 09:46:42 UTC, snow wrote:Hello, I searched a lot in the docs and search, but couldn't find anything so far. Is there a funtion, which converts my decimal number into a binary?I presume your decimal is in a string? use std.conv.parse or std.conv.to
Jun 10 2013