powered by
Num of byte needed to fit in n * KiB, MiB ..etc.
binaryPrefix(n, prefix="KiB")
numeric value
binary prefix * byte. Expeting a <U+00BB>string<U+00AB>
The number of byte fitting in n * binary prefix * byte
KiB <- KibiByte MiB <- MebiByte GiB <- GibiByte TiB <- TebiByte PiB <- PebiByte EiB <- ExiByte ZiB <- ZebiByte YiB <- YobiByte
bytesNeeded or fillUpToByte or byte
# NOT RUN { #Get the number of byte needed to hold 0.5 and 1:10 KiB binaryPrefix(c(0.5,1:10),"KiB") #Get the number of bit needed to hold 1 KiB binaryPrefix(1,"KiB")*byte() # }
Run the code above in your browser using DataLab