conver BigInt to string
    Namal via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Fri Nov  6 02:00:21 PST 2015
    
    
  
On Thursday, 5 November 2015 at 17:40:12 UTC, bearophile wrote:
> Namal:
>
>> Hello I am trying to convert BigInt to string like that while 
>> trying to sort it:
>
> void main() {
>     import std.stdio, std.algorithm, std.conv, std.bigint, 
> std.string;
>
>     auto n = 17.BigInt ^^ 179;
>     n.text.dup.representation.sort().release.assumeUTF.writeln;
> }
>
> Bye,
> bearophile
can I import libraries anywhere? Is this the proper way to do so?
    
    
More information about the Digitalmars-d-learn
mailing list