- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
public static string ConvertToBinary( ushort value )
{
StringBuilder builder = new StringBuilder( 19 );
int mask = (1 << 15);
for ( int j = 0; j < 4; j++ )
{
for ( int i = 0; i < 4; i++ )
{
builder.Append( ((value & mask) != 0) ? ("1") : ("0") );
mask = mask >> 1;
}
if ( j < 3 )
{
builder.Append( " " );
}
}
return builder.ToString();
}
gegMOPO4 08.11.2011 12:03 # 0
guest8 09.04.2019 11:56 # −999