Best way to get ceil(log2(x)) of a BigInt?

Andrea Fontana via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Nov 2 07:24:42 PDT 2016


On Wednesday, 2 November 2016 at 14:05:50 UTC, pineapple wrote:
> I'm trying to do some math stuff with std.bigint and realized 
> there's no obvious way to calculate the ceil of log2 of a 
> bigint. Help?

How big are your bigints?



More information about the Digitalmars-d-learn mailing list