Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

int to binary string with 4 characters

Convert.ToString(3, 2).PadLeft(4, '0') // 0011
Convert.ToString(3, 2).PadLeft(8, '0') // 00000011
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #int #binary #string #characters
ADD COMMENT
Topic
Name
9+5 =