[Issue 5568] A problem with BigInt modulus

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Feb 13 07:27:09 PST 2011


http://d.puremagic.com/issues/show_bug.cgi?id=5568



--- Comment #4 from Don <clugdbug at yahoo.com.au> 2011-02-13 07:24:38 PST ---
(In reply to comment #3)
> (In reply to comment #2)
> 
> > Have you tried writefln?
> > 
> > import std.stdio;
> > import std.bigint;
> > 
> > void main()
> > {
> >     BigInt a = 7;
> >     a ^^=56;
> >     writefln("%x", a);
> >     writefln("%s", a);    
> > }
> 
> I have never tried that. I suggest to add this example to docs of the
> std.bigint module :-)

Yes, although I think it's pretty obvious. The non-obvious thing, is that if
you tried in on 2.050 or earlier, it didn't work... It does now.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list