HexaToDec()

HexaToDec()

Converts a Hexa Value to Decimal

Syntax

      HexaToDec(<cN>) -><cNr>

Arguments

<cN> Number to be converted

Returns

<cNr> Number converted

Description

This function converts a string <cN> from an hexadecimal value to a numeric decimal value.

Files

Library is libmisc

Seealso

OctalToDec(), BinToDec()

Advertisements

BinToDec()

BinToDec()

Converts a Binary Value to Decimal

Syntax

      BinToDec(<cN>) -><cNr>

Arguments

<cN>Number to be converted

Returns

<cNr>Number converted

Description

This function converts a string <cN> from an binary value to a numeric decimal value.

Files

Library is libmisc

Seealso

OctalToDec(), HexaToDec()

Conversion Functions

Harbour Conversion Functions

Bin2I Convert signed short encoded bytes into Harbour numeric
Bin2L Convert signed long encoded bytes into Harbour numeric
Bin2U Convert unsigned long encoded bytes into Harbour numeric
Bin2W Convert unsigned short encoded bytes into Harbour numeric
BitToC Converts position-dependent bits into characters
BinToDec Converts a Binary Value to Decimal
CToBit Converts a character string into a bit pattern
CToF Converts a special 8-byte string into a floating point number
CToN Converts a numeric string into a different base
DecToBin Converts a Decimal Value to Binary
DecToHexa Converts a Decimal Value to Hexa
DecToOctal Converts a Decimal Value to Octal
Fahrenheit Temperature conversion Celsius to Fahrenheit
FToC Converts a floating point number into a special 8-byte string
HexaToDec Converts a Hexa Value to Decimal
I2Bin Convert Harbour numeric into signed short encoded bytes
L2Bin Convert Harbour numeric into signed long encoded bytes
NToC Converts the numbers in a digit string into a different number base
OctalToDec Converts a Octal Value to Decimal
U2Bin Convert Harbour numeric into unsigned long encoded bytes
W2Bin Convert Harbour numeric into unsigned short encoded bytes
Word Converts double to integer values
XTOC Convert an expression to character type string