toHex

Summary

Returns the hexadecimal (base 16) value of the character.

Usage

public string toHex()

Returns

The hexadecimal representation of the character.

Description

Returns the hexadecimal (base 16) representation of the character value as a string.

Examples

Basic Usage
1
2
`a`.toHex(); // "61"
`b`.toHex(); // "62"

Share

HTML | BBCode | Direct Link