toBaseTwo: Convert form Base 10 to 2

View source: R/toBaseTwo.R

toBaseTwoR Documentation

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.

Details

The function toBaseTwo utilizes the package parallel to make calculation utilizing parallel computing.

Value

r.bit

a list of mpfr numbers that contains the input data in base 2 format.

Author(s)

Haydar Demirhan

Maintainer: Haydar Demirhan <haydarde@hacettepe.edu.tr>


CryptRndTest documentation built on April 22, 2022, 9:07 a.m.