BigInteger: ToString |
Returns a human readable string of characters representing the number.
Public Function ToString( Optional ByRef Format As String, Optional ByVal Provider As IFormatProvider ) As String
"X" and "x" for hex in either upper or lowercase. Everything else defaults to a decimal display.
The specifier can also contain a number of mininum digits to be displayed. If the value isnt long enough to reach the mininum digits, then leading 0's or FFs will be added to the beginning of the output.
Dim b As BigInteger Set b = BInt(-200) Debug.Print b.ToString("d8") ' -00000200 Debug.Print b.ToString("d") ' -200 Debug.Print b.ToString("x8") ' ffffff38 Debug.Print b.ToString("x") ' ff38
If no format is specified, the default of "d" is used.