The OpenD Programming Language

BigInt.fromBinaryString

struct BigInt(uint size64)
@safe static @trusted pure
fromBinaryString
(
bool allowUnderscores = false
)
(
scope const(char)[] str
)
if (
size64 &&
size64 <= ushort.max
)

Examples

BigInt!4 integer = "-34010447314490204552169750449563978034784726557588085989975288830070948234680"; // constructor
assert(integer == BigInt!4.fromBinaryString("-100101100110001001110110010001110101010010101100000111000011011000010011000010111111000100111001011111001101101111101010100011000001000011000001110001110011010011001001011101010010010101101001010101111011101001111101110011101111110010011100000010110111000"));

Meta