| BigIntegerStatic: Parse |
Attemps to parse a string of characters of the specified base type.
Public Function Parse( ByVal s As String ) As BigInteger
If the string could not be parsed, an exception is thrown.
3 base types are supported for parsing (Decimal, Hex, Binary.) The string must include a base type specifier for Hex and Binary. Decimal is the default.
Hex Specifiers: 0x, 0X, &H, &H - (0xFF, 0XFF, &HFF, &HFF)
Binary Specifiers: 0b, 0B - (0b00001111, 0B000011111)
Dim b As BigInteger
Set b = BigInteger.Parse("-&H7FFF")
Debug.Print b.ToString("X") ' 8001
Parsing is not case sensitive.
Project VBCorLib Overview Class BigIntegerStatic Overview BigIntegerStatic Properties BigIntegerStatic Methods OrBits Pow