System.JSON.TJSONString.Hex

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class function Hex(const Digit: TInt15): Byte; static;

C++

static System::Byte __fastcall Hex(const TInt15 Digit);

Properties

Type Visibility Source Unit Parent
function public
System.JSON.pas
System.JSON.hpp
System.JSON TJSONString

Description

Converts the given Digit decimal digit to the equivalent hexadecimal digit.

Hex converts the given Digit decimal digit to the equivalent hexadecimal digit and returns a byte containing the corresponding ASCII hexadecimal digit code.

For example, Hex converts the decimal 11 digit to the hexadecimal B digit and returns the $42 ASCII code of B character.

See Also