MCPcopy Index your code
hub / github.com/dmarman/sha256algorithm / decimalToBinary

Function decimalToBinary

src/classes/utils.js:52–54  ·  view source on GitHub ↗
(decimal)

Source from the content-addressed store, hash-verified

50}
51
52export function decimalToBinary(decimal) {
53 return Number(decimal).toString(2)
54}
55
56export function binaryToDecimal(binary) {
57 return parseInt(binary, 2);

Callers 8

Sigma.jsFile · 0.90
MessageBlock.jsFile · 0.90
Inpector.jsFile · 0.90
SigmaUpper.jsFile · 0.90
stringToBinaryFunction · 0.70
hexToBinaryFunction · 0.70
paddingFunction · 0.70
paddingExplainedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected