What I am looking for is something like PHPs decbin
function in C#. That function converts decimals to its representation as a string.
For example, when using decbin(21)
it returns 10101
as result.
I found this function which basically does what I want, but maybe there is a better / faster way?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…