Return to previous page | Return to menu | Go to next page


Uint32
Arithmetic functions

slHex2Dec

Convert hexadecimal code to BCD code

Format

Uint32 slHex2Dec(val)
Uint32 val ;

Parameter

val Hexadecimal code to be converted

Function

Convert hexadecimal code to BCD code.

Return value

The function returns the converted BCD code.

Remarks

BCD code: Notation for representing 0 to 9 in 4 bits
(Example: Decimal 128 is 0x128 in BCD notation)

Note) Examples of numerical notation using each numerical notation are shown below.

Reference: Chapter 11 Arithmetic Functions

slHex2Dec


Return to previous page | Return to menu | Go to next page