Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

hex2dec (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the string class.

Syntax

c = hex2dec(a)

Description

Converts a hexadecimal number represented by a string to a decimal number.

Examples

Inputs

Name Description
a Specifies a hexadecimal number. Valid hexadecimal characters are: 0-9, a, b, c, d, e, f. You also can use the following characters: 0-9, A, B, C, D, E and F. a is a string.

Outputs

Name Description
c Returns a decimal number equivalent to a. c is an integer.

Examples

A = '10aaf'
C = hex2dec(A)

Related Topics

base2dec
bin2dec
dec2hex
hex2num


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit