convert base
Steven Schveighoffer via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Jun 1 12:53:50 PDT 2015
On 6/1/15 3:43 PM, Hugo wrote:
> How could I convert a number form binary to an arbitrary base like 19 or
> 23?
import std.conv;
to!(string)(100, 19); // "55"
-Steve
More information about the Digitalmars-d-learn
mailing list