System.JSON.TJSONObject.HexToDecimal
Delphi
class function HexToDecimal(const Value: Byte): Integer; static; inline;
C++
static int __fastcall HexToDecimal(const System::Byte Value);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | System.JSON.pas System.JSON.hpp |
System.JSON | TJSONObject |
Description
Returns the decimal value corresponding to the specified Value hexadecimal digit.
HexToDecimal converts the specified Value hexadecimal digit, given by its hexadecimal position in the ASCII table, into corresponding decimal value. Hexadecimal digits can be one of 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F,a,b,c,d,e,f.
For example, the hexadecimal digit B corresponds to $42 member in ASCII table. HexToDecimal converts $42 passed in the Value parameter into 11 decimal value.
HexToDecimal uses HexDecimalConvert.