BigInt.this

this(Range s)

Construct a BigInt from a decimal or hexadecimal string. The number must be in the form of a decimal or hex literal. It may have a leading `+` or `-` sign, followed by 0x or 0X if hexadecimal. Underscores are permitted in any location after the 0x and/or the sign of the number.

Parameters

sa finite bidirectional range of any character type

Throws

ConvException if the string doesn't represent a valid number
this(Range s) pure

ditto

this(bool isNegative, Range magnitude)

Construct a BigInt from a sign and a magnitude.

The magnitude is an input range of unsigned integers that satisfies either hasLength or isForwardRange. The first (leftmost) element of the magnitude is considered the most significant.

Parameters

isNegativetrue for negative, false for non-negative (ignored when magnitude is zero)
magnitudea finite range of unsigned integers
this(T x) pure nothrow @safe

Construct a BigInt from a built-in integral type.

this(T x) pure nothrow @safe

Construct a BigInt from another BigInt.