toHex

Summary

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

Usage

public string toHex()

Returns

The hexadecimal representation of the integer.

Description

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

Examples

Basic Usage
1
2
3
4
5
6
7
import System;
 
signed byte a = 97, b = 98, z = 122;
 
Console.log(a.toHex()); // "61"
Console.log(b.toHex()); // "62"
Console.log(z.toHex()); // "7a"

Share

HTML | BBCode | Direct Link