toBaseTwo:
Convert form Base 10 to 2
Description
Converts large integers form base 10 to base 2 using mpfr numbers by Pmpfr package.
Usage
toBaseTwo(x, m = 128, prec = 512, num.CPU = 4)
Arguments
x
an mpfr vector including the data in base 10.
m
desired bit length in the output.
prec
precision of the calculations.
num.CPU
the number of CPUs that will be used in parallel computing.
Value
- r.bit
-
a list of mpfr numbers that contains the input data in base 2 format.
Details
The function toBaseTwo utilizes the package parallel to make calculation utilizing parallel computing.