DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
9+5 =
Submit