transform decimal integer to other number mode, such as binary
(radix = 2
)
base(x, radix, n.digit)
x | integer scalar. The number to transform |
---|---|
radix | integer scalar. radix of the target number, \(2\) for binary, \(8\) for octal, etc. |
n.digit | integer scalar. how many digits the result contains, unused uppper digits are filled by \(0\) |
integer. each scalar of the vector represent one digit of the transformed number