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
1
2
3
4
import System;
 
unsigned short a = 97;
Console.log(a.toBinary()); // "1100001"

Share

HTML | BBCode | Direct Link