febb: (Baran)
[personal profile] febb
Нужно было посмотреть чиселки в двоичном виде в C#.
Поискал в бибитеках и не нашел.
Накатал детскую программку: :)


static public string ToBinary(int n)
{
if(n==0)
return "0";
if(n==1)
return "1";
return ToBinary(n/2) + ToBinary(n&1);
}

Date: 2011-11-14 06:34 pm (UTC)
From: [identity profile] octpobb.livejournal.com
Convert.ToString(yourNumber, 2)

Date: 2011-11-14 07:10 pm (UTC)
From: [identity profile] febb.livejournal.com
Wow! :)) Tnx!

Profile

febb: (Default)
febb

March 2022

S M T W T F S
  1 2 345
6 7 89 101112
13141516171819
20212223242526
2728293031  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 7th, 2025 05:01 pm
Powered by Dreamwidth Studios