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


Uint32
Arithmetic functions

slDec2Hex

Conversion from BCD code to hexadecimal code

Format

Uint32 slDec2Hex(val)
Uint32 val ;

Parameter

val BCD code to be converted

Function

Convert BCD code to hexadecimal code.

Return value

The function returns the converted hexadecimal code.

Remarks

BCD code: 4-bit notation representing 0-9 (Example: Decimal 128 is 0x128 in BCD notation)

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

slDec2Hex


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