toBinary

Summary

Returns the binary (base 2) value of the character.

Usage

public string toBinary()

Returns

The binary representation of the character.

Description

Returns the binary (base 2) representation of the character value as a string.

Examples

Basic Usage
1
2
`a`.toBinary(); // "1100001"
`b`.toBinary(); // "1100010"

Share

HTML | BBCode | Direct Link