hex2dec

From DavinciWiki
Jump to: navigation, search

Description

Convert hex to decimal

Arguments and Return Values

Arguments: A hex string

Return Value: an integer number


Usage

Syntax: hex2dec(hex)

'hex' - a hexadecimal string

Examples

dv> hex2dec("FFFF")
65535

dv> hex2dec("FFFFF")
1048575

dv> hex2dec("FFFFFF")
16777215

dv> hex2dec("00FF00")
65280

dv> hex2dec("FF00FF")
16711935

dv> hex2dec("000000")
0

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Major Sub-Functions

Related Functions

Recent Library Changes

Created On: 12-07-2012
Modified On: 06-27-2020

Personal tools