ConvException if the string doesn't represent a valid numberBigInt.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
s | a finite bidirectional range of any character type |
Throws
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
isNegative | true for negative, false for non-negative (ignored when magnitude is zero) |
magnitude | a finite range of unsigned integers |
this
(T x) pure nothrow @safeConstruct a BigInt from a built-in integral type.
this
(T x) pure nothrow @safeConstruct a BigInt from another BigInt.