toBinary Summary Returns the binary (base 2) value of the integer. Usage public string toBinary() Returns The binary representation of the integer. Description Returns the binary (base 2) representation of the integer value as a string. Examples Basic Usage 1234import System; byte a = 97;Console.log(a.toBinary()); // "1100001" Share HTML | BBCode | Direct Link