Closed IkechukwuAKalu closed 4 years ago
This commit adds base conversion functionality to binary and hexadecimal representations.
Usage bigInt(10).binary(); bigInt(10).hex();
bigInt(10).binary();
bigInt(10).hex();
Coverage decreased (-0.9%) to 93.38% when pulling 0d4f35938d2cd01f40f75bc326ac5c8060abcc31 on IkechukwuAKalu:add-base-converters into 67a715c917bd0eb0c106c45935b889269a24dcef on peterolson:master.
This functionality already exists using the toString(base) functionality, and it is not limited to only binary and hex.
toString(base)
This commit adds base conversion functionality to binary and hexadecimal representations.
Usage
bigInt(10).binary();
bigInt(10).hex();