inst/Examples/bitRepExample.R

m <- 24; x <- .54321
pwrs <- 2^(1:m)
xpwrs <- x*pwrs
xrep <- trunc(xpwrs)/pwrs
bits <- c(xrep[[1]], diff(xrep))*pwrs
bits

Try the SoDA package in your browser

Any scripts or data that you put into this service are public.

SoDA documentation built on Oct. 28, 2020, 9:07 a.m.